File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -171,9 +171,15 @@ build_deb() {
171
171
echo " Build for debian 9 or newer using actual packaging"
172
172
tarname=${project} _${debianversion} .orig.tar.gz
173
173
clean_up
174
- python -m build -s
175
- ln -s ${source_project} -${strictversion} .tar.gz dist/${tarname}
176
- directory=${source_project} -${strictversion}
174
+ if [ $debian_version -le 11 ]
175
+ then
176
+ python3 setup.py debian_src
177
+ directory=${project} -${strictversion}
178
+ else
179
+ python3 -m build -s
180
+ ln -s ${source_project} -${strictversion} .tar.gz dist/${tarname}
181
+ directory=${source_project} -${strictversion}
182
+ fi
177
183
cp -f dist/${tarname} ${build_directory}
178
184
if [ -f dist/${project} -testimages.tar.gz ]
179
185
then
@@ -236,10 +242,13 @@ build_deb() {
236
242
11)
237
243
debian_name=bullseye
238
244
;;
245
+ 12)
246
+ debian_name=bookworm
247
+ ;;
239
248
esac
240
249
241
- dch -v ${debianversion} -1 " upstream development build of ${project} ${version} " --force-distribution
242
- dch -D ${debian_name} -backports -l~bpo${debian_version} + " ${project} snapshot ${version} built for ${target_system} " --force-distribution
250
+ dch --force-distribution - v ${debianversion} -1 " upstream development build of ${project} ${version} "
251
+ dch --force-distribution - D ${debian_name} -backports -l~bpo${debian_version} + " ${project} snapshot ${version} built for ${target_system} "
243
252
# dch --bpo "${project} snapshot ${version} built for ${target_system}"
244
253
dpkg-buildpackage -r
245
254
rc=$?
You can’t perform that action at this time.
0 commit comments