diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-02-02 14:07:43 -0800 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-02-02 14:07:43 -0800 |
commit | 5574c245519a5686c25a9ec46727ec1f629dc833 (patch) | |
tree | 76836fdb89d8812f44fe9570800f6f3704dec1fa | |
parent | 7fd7449540b3f456db904e6da01d8c8ff2a27637 (diff) | |
download | fedora-packager-5574c245519a5686c25a9ec46727ec1f629dc833.tar.gz fedora-packager-5574c245519a5686c25a9ec46727ec1f629dc833.tar.xz fedora-packager-5574c245519a5686c25a9ec46727ec1f629dc833.zip |
Wire up the unused_patches function
-rwxr-xr-x | src/fedpkg.py | 9 |
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 |