submittodebian: Use optparse to display --help (LP: #988009)

This commit is contained in:
Stefano Rivera 2012-05-05 19:34:02 +02:00
parent b8a2ca9e5a
commit 083d44f676
3 changed files with 6 additions and 1 deletions

1
debian/changelog vendored
View File

@ -3,6 +3,7 @@ ubuntu-dev-tools (0.142) UNRELEASED; urgency=low
* mk-sbuild: Support kmod, when checking for overlayfs availability.
* pbuilder-dist: improve bash_completion for *.dsc files. Thanks Maarten
Bezemer. (Closes: #670924, LP: #770529)
* submittodebian: Use optparse to display --help (LP: #988009)
-- Stefano Rivera <stefanor@debian.org> Wed, 25 Apr 2012 17:38:58 +0200

View File

@ -22,6 +22,7 @@
#
# ##################################################################
import optparse
import os
import re
import shutil
@ -190,6 +191,10 @@ reportbug --configure for its configuration wizard.
sys.exit(1)
def main():
parser = optparse.OptionParser(
description='Submit the Ubuntu changes in a package to Debian. '
'Run inside an unpacked Ubuntu source package.')
parser.parse_args()
check_reportbug_config()
changelog_file = (check_file('debian/changelog', critical = False) or
check_file('../debian/changelog'))

View File

@ -30,7 +30,6 @@ BLACKLIST = {
'grep-merges': 'No Help',
'pbuilder-dist-simple': 'No Help',
'setup-packaging-environment': 'Throws Error',
'submittodebian': 'No Help',
'ubuntu-iso': 'No Help',
}
TIMEOUT = 5