mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-12 09:21:29 +00:00
Adjust parameter and add -P to the list.
This commit is contained in:
parent
d4667d668e
commit
d526cd933f
17
ack-sync
17
ack-sync
@ -177,21 +177,22 @@ def usage():
|
|||||||
print """ack-sync <bug numbers>
|
print """ack-sync <bug numbers>
|
||||||
|
|
||||||
-h, --help displays this help
|
-h, --help displays this help
|
||||||
-l, --lvm lvm root dev directory, used for sbuild and piuparts. Default is /dev/vg
|
-l, --lvm lvm root dev directory, used for sbuild and piuparts
|
||||||
|
default is /dev/vg
|
||||||
-p, --package=<package> set the package
|
-p, --package=<package> set the package
|
||||||
-P, --with_piuparts use piuparts to check the instalability of the package
|
-P, --with-piuparts use piuparts to check the instalability
|
||||||
--section=<section> Debian section (one of main, contrib, non-free)
|
--section=<section> Debian section (one of main, contrib, non-free)
|
||||||
-s, --silent be more silent
|
-s, --silent be more silent
|
||||||
-S, --with_sbuild use sbuild instead of pbuilder
|
-S, --with-sbuild use sbuild instead of pbuilder
|
||||||
-u, --update updates pbuilder before building
|
-u, --update updates pbuilder before building
|
||||||
-v, --verbose be more verbosive
|
-v, --verbose be more verbosive
|
||||||
-V, --version=<version> set the version"""
|
-V, --version=<version> set the version"""
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
long_opts = ["help", "package=", "section=", "silent", "update",
|
long_opts = ["help", "lvm=", "package=", "section=", "silent", "update",
|
||||||
"verbose", "version=", "with_sbuild", "with_piuparts", "lvm="]
|
"verbose", "version=", "with-sbuild", "with-piuparts"]
|
||||||
opts, args = getopt.gnu_getopt(sys.argv[1:], "hp:sSuvV:", long_opts)
|
opts, args = getopt.gnu_getopt(sys.argv[1:], "hp:PsSuvV:", long_opts)
|
||||||
except getopt.GetoptError, e:
|
except getopt.GetoptError, e:
|
||||||
# print help information and exit:
|
# print help information and exit:
|
||||||
print >> sys.stderr, str(e) # will print something like "option -a not recognized"
|
print >> sys.stderr, str(e) # will print something like "option -a not recognized"
|
||||||
@ -215,13 +216,13 @@ if __name__ == '__main__':
|
|||||||
lvm = a
|
lvm = a
|
||||||
elif o in ("-p", "--package"):
|
elif o in ("-p", "--package"):
|
||||||
package = a
|
package = a
|
||||||
elif o in ("-P", "--with_piuparts"):
|
elif o in ("-P", "--with-piuparts"):
|
||||||
piuparts = True
|
piuparts = True
|
||||||
elif o in ("--section"):
|
elif o in ("--section"):
|
||||||
section = a
|
section = a
|
||||||
elif o in ("-s", "--silent"):
|
elif o in ("-s", "--silent"):
|
||||||
silent = True
|
silent = True
|
||||||
elif o in ("-S", "--with_sbuild"):
|
elif o in ("-S", "--with-sbuild"):
|
||||||
sbuild = True
|
sbuild = True
|
||||||
elif o in ("-u", "--update"):
|
elif o in ("-u", "--update"):
|
||||||
update = True
|
update = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user