Hi all!

I also noticed that `dch` still uses bullseye as latest stable when using `dch --bpo`.

I had a quick look into it and came up with this patch:


--- /usr/bin/dch    2023-04-05 12:40:28.000000000 +0200
+++ /root/dch_bookworm    2023-09-10 01:07:09.625694923 +0200
@@ -163,7 +163,7 @@
          distribution name
   --bpo
          Increment the Debian release number for a backports upload
-         to "bullseye-backports"
+         to "bookworm-backports"
   --stable
          Increment the Debian release number for a stable upload.
   -l, --local <suffix>
@@ -507,7 +507,7 @@
 if (defined $opt_D) {
     if ($vendor eq 'Debian') {
         unless ($opt_D
-            =~ /^(experimental|unstable|sid|UNRELEASED|((old){0,2}stable|testing|wheezy|jessie|stretch|buster|bullseye)(-proposed-updates|-security)?|proposed-updates)$/ +            =~ /^(experimental|unstable|sid|UNRELEASED|((old){0,2}stable|testing|wheezy|jessie|stretch|buster|bullseye|bookworm)(-proposed-updates|-security)?|proposed-updates)$/
         ) {
             my $deb_info = get_debian_distro_info();
             my ($oldstable_backports, $stable_backports) = ("", "");
@@ -530,9 +530,9 @@
                   if $oldstable_backports;
                 warn "$progname warning: Recognised distributions are: \n"
                   . "experimental, unstable, testing, stable, oldstable, oldoldstable,\n" -                  . "{bullseye,buster,stretch,jessie,wheezy}-proposed-updates,\n" +                  . "{bookworm,bullseye,buster,stretch,jessie,wheezy}-proposed-updates,\n"                    . "{testing,stable,oldstable,oldoldstable}-proposed-updates,\n"
-                  . "{bullseye,buster,stretch,jessie,wheezy}-security,\n"
+                  . "{bookworm,bullseye,buster,stretch,jessie,wheezy}-security,\n"                    . "{testing,stable,oldstable,oldoldstable}}-security$oldstable_backports$stable_backports and UNRELEASED.\n"
                   . "Using your request anyway.\n";
                 $warnings++ if not $opt_force_dist;
@@ -673,7 +673,7 @@
     11, 'bullseye', 12, 'bookworm', 13, 'trixie'
 );
 my $lts_dist    = '9';
-my $latest_dist = '11';
+my $latest_dist = '12';
 # dist guessed from backports, SRU, security uploads...
 my $guessed_dist = '';
 my $CHANGES      = '';

I


Best greetings!


Marcus Hanisch

Reply via email to