mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +00:00
Use the right set of arguments depending on how many we have
This commit is contained in:
parent
4465bcd28c
commit
a3381c3724
@ -85,7 +85,10 @@ def main():
|
||||
Usage: %s <project name> <version> <tarball> [new milestone]''' % sys.argv[0]
|
||||
sys.exit(1)
|
||||
|
||||
(project, version, tarball, new_milestone) = sys.argv[1:]
|
||||
if len(sys.argv) == 4:
|
||||
(project, version, tarball) = sys.argv[1:]
|
||||
else:
|
||||
(project, version, tarball, new_milestone) = sys.argv[1:]
|
||||
|
||||
try:
|
||||
launchpad = Launchpad.login_with('ubuntu-dev-tools', 'production')
|
||||
|
Loading…
x
Reference in New Issue
Block a user