From 57d98ad144636d796103d1624fd9a130ad8fc33c Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Thu, 17 Jul 2008 12:24:48 +0000 Subject: Ok, we have added a --distro option in order to allow the user specifying the distro name without worrying about the format. Just for completeness. --- RepSys/commands/submit.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'RepSys/commands') diff --git a/RepSys/commands/submit.py b/RepSys/commands/submit.py index c4a0c05..44a4284 100644 --- a/RepSys/commands/submit.py +++ b/RepSys/commands/submit.py @@ -38,6 +38,7 @@ Options: -s The host in which the package URL will be submitted (defaults to the host in the URL) -h Show this message + --distro The distribution branch where the packages come from --define Defines one variable to be used by the submit scripts in the submit host @@ -62,6 +63,8 @@ def parse_options(): parser.add_option("-r", dest="revision", type="string", nargs=1) parser.add_option("-s", dest="submithost", type="string", nargs=1, default=None) + parser.add_option("--distro", dest="distro", type="string", + default=None) parser.add_option("--define", action="append", default=[]) opts, args = parser.parse_args() if not args: @@ -93,7 +96,9 @@ def parse_options(): if expanded != args: print "Submitting: %s" % " ".join(expanded) args = expanded - opts.urls = [layout.package_url(nameurl, mirrored=False) for nameurl in args] + opts.urls = [layout.package_url(nameurl, distro=opts.distro, mirrored=False) + for nameurl in args] + del opts.distro if opts.target is None: target = layout.distro_branch(opts.urls[0]) or DEFAULT_TARGET print "Implicit target: %s" % target -- cgit v1.2.1