From 5574c245519a5686c25a9ec46727ec1f629dc833 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 2 Feb 2010 14:07:43 -0800 Subject: Wire up the unused_patches function --- src/fedpkg.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit