summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/fedpkg.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index d7222ec..6bfa768 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -439,8 +439,13 @@ def unusedfedpatches(args):
log.warning('Not implimented yet, got %s' % args)
def unusedpatches(args):
- # not implimented
- log.warning('Not implimented yet, got %s' % args)
+ try:
+ mymodule = fedpkg.PackageModule(args.path)
+ unused = mymodule.unused_patches()
+ except fedpkg.FedpkgError, e:
+ log.error('Could not get unused patches: %s' % e)
+ sys.exit(1)
+ print('\n'.join(unused))
def update(args):
# not implimented