diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2008-07-17 12:24:48 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2008-07-17 12:24:48 +0000 |
commit | 57d98ad144636d796103d1624fd9a130ad8fc33c (patch) | |
tree | 95f1dbcb0df2efeea6c5ea054c58442e4e0ca399 /RepSys | |
parent | 5335dc3383f43a037c548158b3cd6bc385eb5770 (diff) | |
download | mgarepo-57d98ad144636d796103d1624fd9a130ad8fc33c.tar mgarepo-57d98ad144636d796103d1624fd9a130ad8fc33c.tar.gz mgarepo-57d98ad144636d796103d1624fd9a130ad8fc33c.tar.bz2 mgarepo-57d98ad144636d796103d1624fd9a130ad8fc33c.tar.xz mgarepo-57d98ad144636d796103d1624fd9a130ad8fc33c.zip |
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.
Diffstat (limited to 'RepSys')
-rw-r--r-- | RepSys/commands/submit.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 |