summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2015-09-08 22:58:22 +0200
committerOlav Vitters <olav@vitters.nl>2015-09-08 22:58:22 +0200
commit8103a2aa550991dde428442a6eaaacac2ecfe9c6 (patch)
treeb306ff343b3f6d64ee7683700ddd94561f6d93ac
parentaa439429c761919e06fd048a253555a6baced4f6 (diff)
downloadmgagnome-8103a2aa550991dde428442a6eaaacac2ecfe9c6.tar
mgagnome-8103a2aa550991dde428442a6eaaacac2ecfe9c6.tar.gz
mgagnome-8103a2aa550991dde428442a6eaaacac2ecfe9c6.tar.bz2
mgagnome-8103a2aa550991dde428442a6eaaacac2ecfe9c6.tar.xz
mgagnome-8103a2aa550991dde428442a6eaaacac2ecfe9c6.zip
make packages subcommand be able to give SPEC file location
-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
)