Deprecated --paths option in list-buildroot
Fixes: https://pagure.io/koji/issue/2473
This commit is contained in:
parent
d83a7631eb
commit
54055c8ed0
2 changed files with 60 additions and 1 deletions
|
|
@ -2746,13 +2746,15 @@ def anon_handle_list_buildroot(goptions, session, args):
|
|||
"[info] List the rpms used in or built in a buildroot"
|
||||
usage = "usage: %prog list-buildroot [options] <buildroot-id>"
|
||||
parser = OptionParser(usage=get_usage_str(usage))
|
||||
parser.add_option("--paths", action="store_true", help="Show the file paths")
|
||||
parser.add_option("--paths", action="store_true", help=SUPPRESS_HELP)
|
||||
parser.add_option("--built", action="store_true", help="Show the built rpms")
|
||||
parser.add_option("--verbose", "-v", action="store_true", help="Show more information")
|
||||
(options, args) = parser.parse_args(args)
|
||||
if len(args) != 1:
|
||||
parser.error("Incorrect number of arguments")
|
||||
ensure_connection(session, goptions)
|
||||
if options.paths:
|
||||
parser.error("--paths option is deprecated and will be removed in 1.30")
|
||||
buildrootID = int(args[0])
|
||||
opts = {}
|
||||
if options.built:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue