mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
* buildd: Added checks for arch-indep packages and packages which have no
builds in a release. * hugdaylist: String improvements.
This commit is contained in:
parent
82a2c43316
commit
4f99bf5466
15
buildd
15
buildd
@ -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
5
debian/changelog
vendored
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user