aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/commands
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-11-13 05:11:28 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-11-13 05:11:28 +0000
commit0fe6300c34bb791ccfb1050b04fbb9afd162b322 (patch)
tree230ecdf8499337268b330856601c2510ac60a867 /RepSys/commands
parent7e0e0014427a3609d3102e47446cfad7d3c52624 (diff)
downloadmgarepo-0fe6300c34bb791ccfb1050b04fbb9afd162b322.tar
mgarepo-0fe6300c34bb791ccfb1050b04fbb9afd162b322.tar.gz
mgarepo-0fe6300c34bb791ccfb1050b04fbb9afd162b322.tar.bz2
mgarepo-0fe6300c34bb791ccfb1050b04fbb9afd162b322.tar.xz
mgarepo-0fe6300c34bb791ccfb1050b04fbb9afd162b322.zip
Make package and revision optional options for submit, again
This mode has been broken for a long time due to a change in subversion output. The confirmation of the revision being used was removed, as already used by mdvsys. Instead, notify the user and allow him to interrupt the process.
Diffstat (limited to 'RepSys/commands')
-rw-r--r--RepSys/commands/submit.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/RepSys/commands/submit.py b/RepSys/commands/submit.py
index 5c95526..25d5831 100644
--- a/RepSys/commands/submit.py
+++ b/RepSys/commands/submit.py
@@ -20,6 +20,9 @@ Usage: repsys submit [OPTIONS] [URL [REVISION]]
Submits the package from URL to the submit host.
+If no URL and revision are specified, the latest changed revision in
+the package working copy of the current directory will be used.
+
Options:
-t TARGET Submit given package URL to given target
-l Just list available targets
@@ -51,15 +54,8 @@ def parse_options():
opts, args = parser.parse_args()
if not args:
name, rev = get_submit_info(".")
- try:
- yn = raw_input("Submit '%s', revision %d (y/N)? " % (name, rev))
- except KeyboardInterrupt:
- yn = "n"
- if yn.lower() in ("y", "yes"):
- args = name, str(rev)
- else:
- print "Cancelled."
- sys.exit(1)
+ args = name, str(rev)
+ print "submitting %s at revision %s..." % args
elif len(args) > 2:
raise Error, "invalid arguments"
opts.pkgdirurl = default_parent(args[0])