diff options
author | 2014-06-01 18:09:38 +0200 | |
---|---|---|
committer | 2014-06-01 18:09:38 +0200 | |
commit | 427435c8b5fc25f8510fcad576ff46fa3737e21d (patch) | |
tree | bf7694970e5708413266b941a6b4f77173f8d29f /scripts | |
parent | bump (diff) | |
download | maekke-427435c8b5fc25f8510fcad576ff46fa3737e21d.tar.gz maekke-427435c8b5fc25f8510fcad576ff46fa3737e21d.tar.bz2 maekke-427435c8b5fc25f8510fcad576ff46fa3737e21d.zip |
fix getPackages param
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-subslot-deps.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/check-subslot-deps.py b/scripts/check-subslot-deps.py index 6a0984e..9250286 100755 --- a/scripts/check-subslot-deps.py +++ b/scripts/check-subslot-deps.py @@ -65,7 +65,9 @@ class CheckSubSlot: m = re.search(":[0-9]*?=", pkg) return m is not None - def getPackages(self, trees=["/usr/portage"], categories=None): + def getPackages(self, trees=None, categories=None): + if trees is None: + trees = ["/usr/portage"] return self.dbapi.cp_all(categories=categories, trees=trees) def getPackageVersions(self, cp): |