mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +00:00
ubuntu-build: missed updating a function call.
This commit is contained in:
parent
c5cef06bff
commit
f77f947359
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -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
|
||||||
|
12
ubuntu-build
12
ubuntu-build
@ -132,7 +132,7 @@ if not options.batch:
|
|||||||
# Get list of published sources for package in question.
|
# Get list of published sources for package in question.
|
||||||
try:
|
try:
|
||||||
sources = ubuntu_archive.getSourcePackage(package, release, pocket)
|
sources = ubuntu_archive.getSourcePackage(package, release, pocket)
|
||||||
distroseries = Distribution('ubuntu').getSeries(release)
|
distroseries = Distribution('ubuntu').getSeries(release)
|
||||||
except (SeriesNotFoundException, PackageNotFoundException), e:
|
except (SeriesNotFoundException, PackageNotFoundException), e:
|
||||||
print e
|
print e
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user