buildpackage: Map 'debian/latest' and 'debian/main' to sid too
authorGuido Günther <agx@sigxcpu.org>
Thu, 28 Oct 2021 07:34:54 +0000 (09:34 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 28 Oct 2021 07:34:54 +0000 (09:34 +0200)
This avoids having to specify a suite with more modern common branch
names.

gbp/scripts/buildpackage.py

index 74f2c5bf144eb6d7d494bcd816932bfe26d89386..f86771812043c9b1d3206898ec431ee17135fe38 100755 (executable)
@@ -212,7 +212,7 @@ def get_pbuilder_dist(options, repo, native=False):
         if len(parts) == 2:  # e.g. debian/stretch
             suite = parts[1]
             if vendor == parts[0]:
-                dist = '' if suite in ['sid', 'master'] else suite
+                dist = '' if suite in ['sid', 'master', 'main', 'latest'] else suite
             else:
                 dist = '%s_%s' % (parts[0], suite)
         # Branches in Debian often omit the debian/ prefix