aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/commands
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2008-07-17 12:25:02 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2008-07-17 12:25:02 +0000
commit17440c0872591bb090f72b3ea31ca43c799351ba (patch)
treee00e90e3e5181925a52b5dc26fc1ab417514cda2 /RepSys/commands
parent84042a07cc5903105a4689f82ccf802964d5b714 (diff)
downloadmgarepo-17440c0872591bb090f72b3ea31ca43c799351ba.tar
mgarepo-17440c0872591bb090f72b3ea31ca43c799351ba.tar.gz
mgarepo-17440c0872591bb090f72b3ea31ca43c799351ba.tar.bz2
mgarepo-17440c0872591bb090f72b3ea31ca43c799351ba.tar.xz
mgarepo-17440c0872591bb090f72b3ea31ca43c799351ba.zip
Don't say 'implicit target' when the user uses --distro, it is being explicit
Diffstat (limited to 'RepSys/commands')
-rw-r--r--RepSys/commands/submit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/RepSys/commands/submit.py b/RepSys/commands/submit.py
index e6b1cc4..e3b2b85 100644
--- a/RepSys/commands/submit.py
+++ b/RepSys/commands/submit.py
@@ -98,11 +98,11 @@ def parse_options():
args = expanded
opts.urls = [layout.package_url(nameurl, distro=opts.distro, mirrored=False)
for nameurl in args]
- del opts.distro
- if opts.target is None:
+ if opts.target is None and distro is None:
target = layout.distro_branch(opts.urls[0]) or DEFAULT_TARGET
print "Implicit target: %s" % target
opts.target = target
+ del opts.distro
return opts
def expand_group(group):