From 17440c0872591bb090f72b3ea31ca43c799351ba Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Thu, 17 Jul 2008 12:25:02 +0000 Subject: Don't say 'implicit target' when the user uses --distro, it is being explicit --- RepSys/commands/submit.py | 4 ++-- 1 file 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): -- cgit v1.2.1