mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
Add experimental to list of Debian distributions.
This commit is contained in:
parent
61cc8e57ba
commit
ebbaada218
@ -33,7 +33,7 @@ _pbuilder-dist()
|
||||
[ "$have" ] && _pbuilder-aliases()
|
||||
{
|
||||
local distro builder arch
|
||||
for distro in $(ubuntu-distro-info --all; debian-distro-info --all) stable testing unstable experimental; do
|
||||
for distro in $(ubuntu-distro-info --all; debian-distro-info --all) stable testing unstable; do
|
||||
for builder in pbuilder cowbuilder; do
|
||||
echo "$builder-$distro"
|
||||
for arch in i386 amd64 armel; do
|
||||
|
@ -12,3 +12,4 @@ version,codename,series,created,release,eol
|
||||
6.0,Squeeze,squeeze,2009-02-14,2011-02-06
|
||||
7.0,Wheezy,wheezy,2011-02-06
|
||||
,Sid,sid,1993-08-16
|
||||
,Experimental,experimental,1993-08-16
|
||||
|
Can't render this file because it has a wrong number of fields in line 12.
|
5
debian/changelog
vendored
5
debian/changelog
vendored
@ -19,7 +19,10 @@ ubuntu-dev-tools (0.126) UNRELEASED; urgency=low
|
||||
* submittodebian: Write a usable .reportbugrc if it doesn't exist.
|
||||
(LP: #800429)
|
||||
|
||||
-- Evan Broder <evan@ebroder.net> Sat, 11 Jun 2011 05:11:23 -0700
|
||||
[ Benjamin Drung ]
|
||||
* Add experimental to list of Debian distributions.
|
||||
|
||||
-- Benjamin Drung <bdrung@debian.org> Sat, 25 Jun 2011 16:19:08 +0200
|
||||
|
||||
ubuntu-dev-tools (0.125ubuntu1) oneiric; urgency=low
|
||||
|
||||
|
@ -77,7 +77,7 @@ class PbuilderDist:
|
||||
self.builder = builder
|
||||
|
||||
self._debian_distros = DebianDistroInfo().all + \
|
||||
['stable', 'testing', 'unstable', 'experimental']
|
||||
['stable', 'testing', 'unstable']
|
||||
|
||||
|
||||
# Ensure that the used builder is installed
|
||||
|
@ -144,6 +144,18 @@ class DebianDistroInfo(DistroInfo):
|
||||
codename = default
|
||||
return codename
|
||||
|
||||
def devel(self, date=None):
|
||||
"""Get latest development distribution based on the given date."""
|
||||
if date is None:
|
||||
date = self._date
|
||||
distros = [x for x in self._avail(date)
|
||||
if x["release"] is None or
|
||||
(date < x["release"] and
|
||||
(x["eol"] is None or date <= x["eol"]))]
|
||||
if len(distros) < 2:
|
||||
raise DistroDataOutdated()
|
||||
return distros[-2]["series"]
|
||||
|
||||
def old(self, date=None):
|
||||
"""Get old (stable) Debian distribution based on the given date."""
|
||||
if date is None:
|
||||
@ -168,12 +180,12 @@ class DebianDistroInfo(DistroInfo):
|
||||
if date is None:
|
||||
date = self._date
|
||||
distros = [x for x in self._avail(date)
|
||||
if x["release"] is None or
|
||||
(date < x["release"] and
|
||||
if (x["release"] is None and x["version"]) or
|
||||
(x["release"] is not None and date < x["release"] and
|
||||
(x["eol"] is None or date <= x["eol"]))]
|
||||
if len(distros) < 2:
|
||||
if not distros:
|
||||
raise DistroDataOutdated()
|
||||
return distros[-2]["series"]
|
||||
return distros[-1]["series"]
|
||||
|
||||
def valid(self, codename):
|
||||
"""Check if the given codename is known."""
|
||||
|
@ -34,7 +34,8 @@ class DebianDistroInfoTestCase(unittest.TestCase):
|
||||
def test_all(self):
|
||||
"""Test: List all known Debian distributions."""
|
||||
all_distros = set(["buzz", "rex", "bo", "hamm", "slink", "potato",
|
||||
"woody", "sarge", "etch", "lenny", "squeeze", "sid"])
|
||||
"woody", "sarge", "etch", "lenny", "squeeze", "sid",
|
||||
"experimental"])
|
||||
self.assertEqual(all_distros - set(self._distro_info.all), set())
|
||||
|
||||
def test_devel(self):
|
||||
@ -52,7 +53,7 @@ class DebianDistroInfoTestCase(unittest.TestCase):
|
||||
def test_supported(self):
|
||||
"""Test: List all supported Debian distribution."""
|
||||
self.assertEqual(self._distro_info.supported(self._date),
|
||||
["lenny", "squeeze", "sid"])
|
||||
["lenny", "squeeze", "sid", "experimental"])
|
||||
|
||||
def test_testing(self):
|
||||
"""Test: Get latest testing Debian distribution."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user