From: Guido Günther Date: Thu, 28 Oct 2021 07:34:54 +0000 (+0200) Subject: buildpackage: Map 'debian/latest' and 'debian/main' to sid too X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6c86c1ab3dc4ba59dcf920e276790b1c6e9571d;p=tools%2Fgit-buildpackage.git buildpackage: Map 'debian/latest' and 'debian/main' to sid too This avoids having to specify a suite with more modern common branch names. --- diff --git a/gbp/scripts/buildpackage.py b/gbp/scripts/buildpackage.py index 74f2c5bf..f8677181 100755 --- a/gbp/scripts/buildpackage.py +++ b/gbp/scripts/buildpackage.py @@ -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