mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
* buildd: Show which architectures are available in help and created a
list of them for easy addition of new ones.
This commit is contained in:
parent
3b6957527d
commit
dd02a931ba
13
buildd
13
buildd
@ -5,7 +5,7 @@
|
||||
# Copyright (C) 2007 Canonical Ltd.
|
||||
# Authors:
|
||||
# - Martin Pitt <martin.pitt@canonical.com>
|
||||
# - Jonathan Patrick Davies <jpds@ubuntu.com>
|
||||
# - Jonathan Davies <jpds@ubuntu.com>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -37,6 +37,10 @@ usage = "%prog <srcpackage> <release> <operation>\n\n"
|
||||
usage += "Where operation may be one of: rescore, retry, or status.\n"
|
||||
usage += "Only Launchpad Buildd Admins may rescore package builds."
|
||||
|
||||
# Valid architectures.
|
||||
validArchs = ["armel", "amd64", "hppa", "i386",
|
||||
"ia64", "lpia", "powerpc", "sparc"]
|
||||
|
||||
# Prepare our option parser.
|
||||
optParser = OptionParser(usage)
|
||||
|
||||
@ -45,7 +49,9 @@ retryRescoreOptions = OptionGroup(optParser, "Retry and rescore options",
|
||||
"These options may only be used with the 'retry' and 'rescore' operations.")
|
||||
retryRescoreOptions.add_option("-a", "--arch", type = "string",
|
||||
action = "store", dest = "architecture",
|
||||
help = "Rebuild or rescore a specific architecture.")
|
||||
help = "Rebuild or rescore a specific architecture. " \
|
||||
"Valid architectures include: " \
|
||||
"%s." % ", ".join(validArchs))
|
||||
|
||||
# Add the retry options to the main group.
|
||||
optParser.add_option_group(retryRescoreOptions)
|
||||
@ -72,8 +78,7 @@ if op not in ("retry", 'rescore') and options.architecture:
|
||||
print >> sys.stderr, "Operation %s does not use the --arch option." % op
|
||||
sys.exit(1)
|
||||
elif op in ("retry", "rescore") and options.architecture:
|
||||
if options.architecture not in ("armel", "amd64", "hppa", "i386", "ia64",
|
||||
"lpia", "powerpc", "sparc"):
|
||||
if options.architecture not in validArchs:
|
||||
print >> sys.stderr, "Invalid architecture specified: %s." % options.architecture
|
||||
sys.exit(1)
|
||||
else:
|
||||
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -14,7 +14,11 @@ ubuntu-dev-tools (0.50) UNRELEASED; urgency=low
|
||||
* pbuilder-dist.new: Add 'experimental' to list of known Debian releases.
|
||||
pbuilder-experimental works fine with pbuilder-dist.new.
|
||||
|
||||
-- Nathan Handler <nhandler@ubuntu.com> Mon, 22 Dec 2008 10:52:14 -0600
|
||||
[ Jonathan Davies ]
|
||||
* buildd: Show which architectures are available in help and created a
|
||||
list of them for easy addition of new ones.
|
||||
|
||||
-- Jonathan Davies <jpds@ubuntu.com> Mon, 29 Dec 2008 18:45:02 +0000
|
||||
|
||||
ubuntu-dev-tools (0.49) jaunty; urgency=low
|
||||
|
||||
|
4
debian/copyright
vendored
4
debian/copyright
vendored
@ -9,7 +9,7 @@ Upstream Authors:
|
||||
Daniel Holbach <daniel.holbach@ubuntu.com>
|
||||
Iain Lane <iain@orangesquash.org.uk>
|
||||
Jamin W. Collins <jcollins@asgardsrealm.net>
|
||||
Jonathan Patrick Davies <jpds@ubuntu.com>
|
||||
Jonathan Davies <jpds@ubuntu.com>
|
||||
Jordan Mantha <mantha@ubuntu.com>
|
||||
Kees Cook <kees@ubuntu.com>
|
||||
Luke Yelavich <themuso@ubuntu.com>
|
||||
@ -37,7 +37,7 @@ Copyright:
|
||||
(C) 2007-2008, Siegfried-A. Gevatter <rainct@ubuntu.com>
|
||||
(C) 2007, Terence Simpson <stdin@stdin.me.uk>
|
||||
(C) 2008, Iain Lane <iain@orangesquash.org.uk>
|
||||
(C) 2008, Jonathan Patrick Davies <jpds@ubuntu.com>
|
||||
(C) 2008, Jonathan Davies <jpds@ubuntu.com>
|
||||
(C) 2008, Nathan handler <nhandler@ubuntu.com>
|
||||
|
||||
Licenses:
|
||||
|
Loading…
x
Reference in New Issue
Block a user