buildd: Strip off pocket from release name when parsing the builds page,

so that this script works for pockets, too.
This commit is contained in:
Martin Pitt 2008-11-11 10:15:22 +01:00
parent c19ab4eb19
commit 16bce3a0d7
2 changed files with 4 additions and 1 deletions

1
buildd
View File

@ -103,6 +103,7 @@ buildstats = {}
page = urlopener.open('https://launchpad.net/ubuntu/+source/%s/%s' % (package, version))
url = page.geturl()
page = page.read()
release = release.split('-')[0] # strip off pocket
print "Current build status for this package is as follows:"

4
debian/changelog vendored
View File

@ -2,8 +2,10 @@ ubuntu-dev-tools (0.48) UNRELEASED; urgency=low
* common.py, checkReleaseExists() and checkSourceExists(): Add support for
specifying pockets (e. g. release name "intrepid-proposed").
* buildd: Strip off pocket from release name when parsing the builds page,
so that this script works for pockets, too.
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 11 Nov 2008 10:09:03 +0100
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 11 Nov 2008 10:14:31 +0100
ubuntu-dev-tools (0.47) jaunty; urgency=low