mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-17 20:01:30 +00:00
Move reportbug existance check after argument parsing
This commit is contained in:
parent
0f5ab96310
commit
4f66ed834b
@ -43,11 +43,6 @@ except ImportError:
|
|||||||
u"which isn't currently installed.")
|
u"which isn't currently installed.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if not os.path.exists('/usr/bin/reportbug'):
|
|
||||||
print (u"This utility requires the «reportbug» package, which isn't "
|
|
||||||
u"currently installed.")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
def get_most_recent_debian_version(changelog):
|
def get_most_recent_debian_version(changelog):
|
||||||
for block in changelog:
|
for block in changelog:
|
||||||
version = block.version.full_version
|
version = block.version.full_version
|
||||||
@ -207,6 +202,12 @@ def main():
|
|||||||
description='Submit the Ubuntu changes in a package to Debian. '
|
description='Submit the Ubuntu changes in a package to Debian. '
|
||||||
'Run inside an unpacked Ubuntu source package.')
|
'Run inside an unpacked Ubuntu source package.')
|
||||||
parser.parse_args()
|
parser.parse_args()
|
||||||
|
|
||||||
|
if not os.path.exists('/usr/bin/reportbug'):
|
||||||
|
print(u"This utility requires the «reportbug» package, which isn't "
|
||||||
|
u"currently installed.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
check_reportbug_config()
|
check_reportbug_config()
|
||||||
changelog_file = (check_file('debian/changelog', critical = False) or
|
changelog_file = (check_file('debian/changelog', critical = False) or
|
||||||
check_file('../debian/changelog'))
|
check_file('../debian/changelog'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user