* buildd: Added checks for arch-indep packages and packages which have no

builds in a release.
* hugdaylist: String improvements.
This commit is contained in:
Jonathan Davies 2008-12-31 22:37:21 +00:00
parent 82a2c43316
commit 4f99bf5466
3 changed files with 21 additions and 4 deletions

15
buildd
View File

@ -117,7 +117,7 @@ url = page.geturl()
page = page.read()
release = release.split('-')[0] # strip off pocket
print "Current build status for this package is as follows:"
print "Current build status for this package:"
for m in re.finditer('"/ubuntu/\+source/%s/%s(/\+build/\d+)"[^\n]+\n\s*(\w+).*?<span>(\w+)</span>.*?</a>\s*([^\n]+)\n' %
(package.replace('+', '\+'), version.replace('+', '\+')), page, re.S):
@ -125,6 +125,19 @@ for m in re.finditer('"/ubuntu/\+source/%s/%s(/\+build/\d+)"[^\n]+\n\s*(\w+).*?<
print '%s: %s.' % (m.group(3), m.group(4))
buildstats[url + m.group(1)] = [m.group(3).strip(), m.group(4).strip()]
# Check that there actually are builds for that release.
if len(buildstats) == 0:
print "No builds for '%s' found in the %s release - it may have been " \
"built in a former release." % (package, release.capitalize())
sys.exit(0)
# Check if the package in question is architecture independent, and if so; that
# i386 has been set as the architecture.
if len(buildstats) == 1 and options.architecture != "i386":
print "Overriding architecture setting to i386 for architecture " \
"independent package..."
options.architecture = "i386"
# Operations.
if op == 'status':
sys.exit(0)

5
debian/changelog vendored
View File

@ -1,6 +1,9 @@
ubuntu-dev-tools (0.51) UNRELEASED; urgency=low
* Change go here.
[ Jonathan Davies ]
* buildd: Added checks for arch-indep packages and packages which have no
builds in a release.
* hugdaylist: String improvements.
-- Jonathan Davies <jpds@ubuntu.com> Tue, 30 Dec 2008 15:51:55 +0000

View File

@ -91,13 +91,14 @@ def main():
try:
bl = BugList(url)
except:
print >> sys.stderr, "The page '%s' does not appear to exist." % url
print >> sys.stderr, "The URL at '%s' does not appear to have a bug " \
"list." % url
sys.exit(1)
l = filter(filter_unsolved, bl)
if not l:
print "BugList of %s is empty." % url
print "Bug list of %s is empty." % url
sys.exit(0)
if howmany == -1:
howmany = len(l)