Rename option from latest to latestfrom.
This commit is contained in:
parent
89f842d92d
commit
95fced2d03
1 changed files with 5 additions and 5 deletions
10
cli/koji
10
cli/koji
|
|
@ -3772,7 +3772,7 @@ def anon_handle_download_build(options, session, args):
|
|||
parser = OptionParser(usage=usage)
|
||||
parser.add_option("--arch", dest="arches", metavar="ARCH", action="append", default=[],
|
||||
help=_("Only download packages for this arch (may be used multiple times)"))
|
||||
parser.add_option("--latest", dest="latest", help=_("Download the latest build from this tag"))
|
||||
parser.add_option("--latestfrom", dest="latestfrom", help=_("Download the latest build from this tag"))
|
||||
parser.add_option("--debuginfo", action="store_true", help=_("Also download -debuginfo rpms"))
|
||||
parser.add_option("-q", "--quiet", action="store_true", help=_("Do not display progress meter"))
|
||||
(suboptions, args) = parser.parse_args(args)
|
||||
|
|
@ -3787,14 +3787,14 @@ def anon_handle_download_build(options, session, args):
|
|||
build = args[0]
|
||||
|
||||
if build.isdigit():
|
||||
if suboptions.latest:
|
||||
print "--latest not compatible with build IDs, specify a package name."
|
||||
if suboptions.latestfrom:
|
||||
print "--latestfrom not compatible with build IDs, specify a package name."
|
||||
return 1
|
||||
build = int(build)
|
||||
|
||||
if suboptions.latest:
|
||||
if suboptions.latestfrom:
|
||||
# We want the latest build, not a specific build
|
||||
buildid = session.listTagged(suboptions.latest, latest=True, package=build)
|
||||
buildid = session.listTagged(suboptions.latestfrom, latest=True, package=build)
|
||||
info = session.getBuild(buildid)
|
||||
else:
|
||||
info = session.getBuild(build)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue