Re: Debianized upstream source branch name

Peter Pentchev <[email protected]>
Newsgroups gmane.linux.debian.devel.python
Message-ID <[email protected]>
On Tue, Nov 18, 2025 at 08:30:55AM +0000, Nick Morrott wrote:
> On Tue, 18 Nov 2025 at 08:00, Andrey Rakhmatullin <[email protected]> wrote:
> >
> > On Mon, Nov 17, 2025 at 10:20:39PM -0300, Aeliton G. Silva wrote:
> 
> <snip>
> 
> > >I was having a look at the python-lsp-server repository and the branch
> > >debian/main does not exist whilst debian/master does.
> >
> > Yes, you need to look at the branches to find which is the debian-branch
> > one.
> 
> If in doubt, always check to see if debian/gbp.conf exists and what
> debian-branch is set to.

As others said, "in which branch would you look for that file?" :)

So another recommendation: if in doubt, check the package out from
its Salsa repo and see which branch you get. I assume that this may be
automated either via the Salsa API; there is also a somewhat weirder way:

  [roam@straylight ~]$ git ls-remote --symref https://salsa.debian.org/python-team/packages/test-stages.git HEAD
  ref: refs/heads/debian/unstable HEAD
  123b8be7b574032315c544ebe90d820cfa608a7c        HEAD
  [roam@straylight ~]$

...so for this repo, the default branch is debian/unstable.

G'luck,
Peter

-- 
Peter Pentchev  [email protected] [email protected] [email protected]
PGP key:        https://www.ringlet.net/roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAmkcRlcACgkQZR7vsCUn
3xOFrw/9He+oX4Cvt8j2aGjBQq7CKcM+2db1zlpLWsj8T/25zeTUEHIABlXz5Cq1
loVWljtHwLdOKpN+FT8viGKYT+rwpcY42gfwPZaocnGhuMWEpQYBJTIr6fdRVNPC
68jhN7AaTH0weYB2XajlY4+am6ArNSqBBfVfpS9AkJYLVEJLf7gTc+LeeuB5/SQy
Qm+8Ja4LI20x3Sv+xFn3JxWtOzETi5xtxBVZnBEMdp1J0YHhqNpaPRpxuqxr7H4N
96iUtB8sIgTvOZnxTj0IdlXR1rGIs2x1efLkB7a+FQJUTjZUhP2Ytal21EHgozBO
vTwOm7RjHQ/B65k8RTS8piZjHBo8rtM2Uh891U0g36CNMD8GJiqMpCThbooizu0t
OA1E3hr0b4UoBwG8NMAlegnTLupZP/Sq2qMQA9hTDM1UxwxFHBS3Te1CLWbdnRPb
70bywrRlpwjl7hElUpCp077aekgqZS2XKlWnwgUWzYcXctnpKKW6SPqRrBKbA7cQ
bPKksTXky14bKTbLczBrMd3snZWM7XqLyqB7d9084CzwFVhPca4TpxJySh6BXpDQ
86+FyCUGdqLUNkhIPt05cBMQn1SGwQRXaQhcyvqMVN5gTTzqWMGXoe8Pgs/9XAJ3
RgUQ8R373lUuOzigXHPQRwFdPkSGlstcYbVpxC3MuEDqKUpmtf4=
=M26j
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.