mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
* requestsync: Skip existing bug check if no credentials are
found (LP: #318120).
This commit is contained in:
parent
e61194f9a0
commit
d1ec836e76
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -1,6 +1,7 @@
|
||||
ubuntu-dev-tools (0.57) UNRELEASED; urgency=low
|
||||
|
||||
* Changes go here.
|
||||
* requestsync: Skip existing bug check if no credentials are
|
||||
found (LP: #318120).
|
||||
|
||||
-- Jonathan Davies <jpds@ubuntu.com> Sat, 17 Jan 2009 11:41:22 +0000
|
||||
|
||||
|
15
requestsync
15
requestsync
@ -95,19 +95,24 @@ def checkExistingReports(package):
|
||||
If found ask for confirmation on filing a request.
|
||||
"""
|
||||
|
||||
launchpad = None
|
||||
|
||||
try:
|
||||
launchpad = common.get_launchpad("ubuntu-dev-tools")
|
||||
except ImportError:
|
||||
print >> sys.stderr, 'Importing launchpadlib failed. Is ' \
|
||||
'python-launchpadlib installed?'
|
||||
print >> sys.stderr, "Skipping existing report check, you should "\
|
||||
"manually check at:"
|
||||
print "- https://bugs.launchpad.net/ubuntu/+source/%s" % package
|
||||
return False
|
||||
except IOError, msg:
|
||||
# No credentials found.
|
||||
print msg
|
||||
sys.exit(1)
|
||||
|
||||
# Failed to get Launchpad credentials.
|
||||
if launchpad is None:
|
||||
print >> sys.stderr, "Skipping existing report check, you should "\
|
||||
"manually see if there are any at:"
|
||||
print "- https://bugs.launchpad.net/ubuntu/+source/%s" % package
|
||||
print ""
|
||||
return False
|
||||
|
||||
# Fetch the package's bug list from Launchpad.
|
||||
pkg = launchpad.distributions["ubuntu"].getSourcePackage(name=package)
|
||||
|
Loading…
x
Reference in New Issue
Block a user