revuput: re-add python-apt import, we will use it soon, print note about created LP Bug

This commit is contained in:
Daniel Holbach 2007-09-07 12:31:52 +02:00
parent 6a512144ca
commit babd1a0849

10
revuput
View File

@ -31,6 +31,12 @@ except:
"You need python-launchpad-bugs (>= 0.2.9) installed to use revuput."
sys.exit(1)
#try:
# import apt
#except:
# print >> sys.stderr, "You need python-apt installed to use revuput."
# sys.exit(1)
USAGE = \
"""Usage: revuput [-n] [<location>] [<debuild options>]
@ -197,6 +203,10 @@ def file_bug(sourcepackage, version):
summary="Please sponsor %s %s" % (sourcepackage, version),
description=\
"The new package will be uploaded to PPA shortly.")
print "Successfully filed bug %s: http://launchpad.net/bugs/%s" % \
(bug.bugnumber, bug.bugnumber)
return bug.bugnumber