summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmgagnome3
1 files changed, 3 insertions, 0 deletions
diff --git a/mgagnome b/mgagnome
index 142296d..7e69837 100755
--- a/mgagnome
+++ b/mgagnome
@@ -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
)