djeuscan/scan_portage: fix purge-packages and purge-versions

purge-packages: purge package that are not found in the tree
purge-versions: purge versions that are not found in the tree

Also, only purge versions of packages specified on the command line
when called without --all.

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
Corentin Chary
2012-06-30 10:19:07 +02:00
parent 20f796df60
commit 9e6f885f89
2 changed files with 83 additions and 105 deletions

View File

@ -49,7 +49,6 @@ class Command(BaseCommand):
if options['all']:
packages = None
elif len(args):
packages = [pkg for pkg in args]
else: