#807406 pbuilder: drop all the 'xenial' hardcoding in debian/rules and make the selection of the distro dynamic

#807406#5
Date:
2015-12-08 13:47:37 UTC
From:
To:
With this upload I added a ifeq stanza in d/rules to automate the delta
that was done in ubuntu, including setting the default DISTRIBUTION to
xenial, the current development version.
They used to upload a new pbuilder at the start of every development
cycle to at least change that, that's bad.
In a sense this is not a regression, I just moved this hardcoding from
ubuntu to debian, but it'd be nice to get rid of it once and for all.

Suggestions includes using distro-info for getting the current
development version, but if run at runtime means a new dep (even if
light and most probably already installed on development machines), and
at build-time is still not granted to be run, ubuntu afaik does not
assure the packages to be rebuilt for every release.

#807406#10
Date:
2015-12-09 13:34:25 UTC
From:
To:
Hi,

pbuilder-dist is actually using some python-distro-info magic

python
from distro_info import DebianDistroInfo, UbuntuDistroInfo
debian_info = DebianDistroInfo()
debian_info.devel()
ubuntu_info = UbuntuDistroInfo()
ubuntu_info.devel()

or directly:
from distro_info import DebianDistroInfo, UbuntuDistroInfo
DebianDistroInfo().devel()
'sid'
UbuntuDistroInfo().devel()
'xenial'

HTH,

Gianfranco