ubuntu-build: missed updating a function call.

This commit is contained in:
Michael Bienia 2010-03-08 18:08:06 +01:00
parent c5cef06bff
commit f77f947359
2 changed files with 14 additions and 5 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
ubuntu-dev-tools (0.96) UNRELEASED; urgency=low
[ Michael Bienia ]
* ubuntu-build: missed updating a function call.
-- Michael Bienia <geser@ubuntu.com> Mon, 08 Mar 2010 17:49:49 +0100
ubuntu-dev-tools (0.95) lucid; urgency=low ubuntu-dev-tools (0.95) lucid; urgency=low
* Update reverse-build-depends for lucid * Update reverse-build-depends for lucid

View File

@ -216,6 +216,11 @@ if release and '-' in release:
sys.exit(1) sys.exit(1)
ubuntu_archive = Distribution('ubuntu').getArchive() ubuntu_archive = Distribution('ubuntu').getArchive()
try:
distroseries = Distribution('ubuntu').getSeries(release)
except SeriesNotFoundException, e:
print e
sys.exit(1)
me = PersonTeam.me me = PersonTeam.me
# Check permisions (part 1): Rescoring can only be done by buildd admins # Check permisions (part 1): Rescoring can only be done by buildd admins
@ -226,15 +231,12 @@ if options.priority and not can_rescore:
for pkg in args: for pkg in args:
try: try:
pkg = ubuntu_archive.getSourcePackage(pkg, release, pocket) pkg = ubuntu_archive.getSourcePackage(pkg, release, pocket)
except SeriesNotFoundException, e:
print e
sys.exit(1)
except PackageNotFoundException, e: except PackageNotFoundException, e:
print e print e
continue continue
# Check permissions (part 2): check upload permissions for the source package # Check permissions (part 2): check upload permissions for the source package
can_retry = options.retry and me.canUploadPackage(ubuntu_archive, pkg.getPackageName(), pkg.getComponent()) can_retry = options.retry and me.canUploadPackage(ubuntu_archive, distroseries, pkg.getPackageName(), pkg.getComponent())
if options.retry and not can_retry: if options.retry and not can_retry:
print >> sys.stderr, "You don't have the permissions to retry the build of '%s'. Ignoring your request." % pkg.getPackageName() print >> sys.stderr, "You don't have the permissions to retry the build of '%s'. Ignoring your request." % pkg.getPackageName()