On Fri, 5 Jan 2024 16:44:03 +0100 Guido =?iso-8859-1?Q?G=FCnther?= <a...@sigxcpu.org> wrote:
What we need to figure out is a way to distinguish "old" style
repos (default upstream and master (or what gbp.conf provides) with
newly created ones (default debian/latest and upstream/latest or what
gbp.conf provides).

Likely the best way to do so is to add a `gbp.conf` option:

`layout = [legacy|dep14]`

defaulting to `legacy` if unset.

Another possibility would be to check which branch exist and understand what is the intended layout. debian-janitor does that.

Pseudo-code:

if branches.include?("debian/latest", "upstream/latest"):
    layout = dep14-2020
if branches.include?("debian/master"):
    layout = dep14-2014
else:
    layout = legacy

Obviously this must be tweaked to take into account branch names set via gbp.conf.

Regards,

--
Gioele Barabucci

Reply via email to