summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-02-02 14:07:43 -0800
committerJesse Keating <jkeating@redhat.com>2010-02-02 14:07:43 -0800
commit5574c245519a5686c25a9ec46727ec1f629dc833 (patch)
tree76836fdb89d8812f44fe9570800f6f3704dec1fa /src/fedpkg.py
parent7fd7449540b3f456db904e6da01d8c8ff2a27637 (diff)
downloadfedora-packager-5574c245519a5686c25a9ec46727ec1f629dc833.tar.gz
fedora-packager-5574c245519a5686c25a9ec46727ec1f629dc833.tar.xz
fedora-packager-5574c245519a5686c25a9ec46727ec1f629dc833.zip
Wire up the unused_patches function
Diffstat (limited to 'src/fedpkg.py')
-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