]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
make-debs.sh: Optionally take debian version bwc-debs
authorZack Cerza <zack@cerza.org>
Fri, 7 Mar 2025 20:53:23 +0000 (13:53 -0700)
committerZack Cerza <zack@cerza.org>
Fri, 7 Mar 2025 20:57:43 +0000 (13:57 -0700)
Our existing CI builds have names like:
  ceph-base_20.0.0-194-g6efaea33-1jammy_amd64.deb
Before this change, they are like:
  ceph-base_20.0.0-158-gb0de3a42-1_amd64.deb
This way we can pass e.g. "jammy" to end up with names compatible with our CI
builds.

Signed-off-by: Zack Cerza <zack@cerza.org>
make-debs.sh

index 046cc5ec29d6591f14292890639ca71304512940..3c98369e5268d86a9020c810d7748e6151978332 100755 (executable)
@@ -49,11 +49,11 @@ cd $releasedir
 perl -ni -e 'print if(!(/^Package: .*-dbg$/../^$/))' ceph-$vers/debian/control
 perl -pi -e 's/--dbg-package.*//' ceph-$vers/debian/rules
 #
-# always set the debian version to 1 which is ok because the debian
-# directory is included in the sources and the upstream version will
-# change each time it is modified.
+# if no debian version is manually specified, set the debian version to 1 which
+# is ok because the debian directory is included in the sources and the upstream
+# version will change each time it is modified.
 #
-dvers="$vers-1"
+dvers="$vers-1$3"
 #
 # update the changelog to match the desired version
 #