diff options
-rwxr-xr-x | mgagnome | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1231,6 +1231,7 @@ def cmd_ls(options, parser): for package, module, package_version, spec_version, downstream_files in streams: sys.stdout.write(package) + if options.spec: sys.stdout.write('/SPECS/%s.spec' % package) if options.upstream: sys.stdout.write("\t%s" % module) if options.show_version: sys.stdout.write("\t%s\t%s" % (spec_version, package_version)) print() @@ -1697,6 +1698,8 @@ def main(): subparser.add_argument( "--sort", type=argparse.FileType('r', 0), dest="sort", metavar="FILE", help="Sort packages according to order in given FILE") + subparser.add_argument( "--spec", action="store_true", dest="spec", + help="Give spec file location") subparser.set_defaults( func=cmd_ls, upstream=False, show_version=False, diff=False ) |