mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +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
|
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
|
-- 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.
|
If found ask for confirmation on filing a request.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
launchpad = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
launchpad = common.get_launchpad("ubuntu-dev-tools")
|
launchpad = common.get_launchpad("ubuntu-dev-tools")
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print >> sys.stderr, 'Importing launchpadlib failed. Is ' \
|
print >> sys.stderr, 'Importing launchpadlib failed. Is ' \
|
||||||
'python-launchpadlib installed?'
|
'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:
|
except IOError, msg:
|
||||||
# No credentials found.
|
# No credentials found.
|
||||||
print msg
|
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.
|
# Fetch the package's bug list from Launchpad.
|
||||||
pkg = launchpad.distributions["ubuntu"].getSourcePackage(name=package)
|
pkg = launchpad.distributions["ubuntu"].getSourcePackage(name=package)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user