summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2011-02-21 02:31:14 +0530
committerNirbheek Chauhan <nirbheek@gentoo.org>2011-02-21 02:31:14 +0530
commitb942550ba08d76eaab1e0f81c626bd501cf340e0 (patch)
tree704a1a968248ee6aa40eea655c1a3702efcd6e1e
parentCleanup the mess in portage_module. God we really need to rewrite this tool... (diff)
downloadgentoo-bumpchecker-b942550ba08d76eaab1e0f81c626bd501cf340e0.tar.gz
gentoo-bumpchecker-b942550ba08d76eaab1e0f81c626bd501cf340e0.tar.bz2
gentoo-bumpchecker-b942550ba08d76eaab1e0f81c626bd501cf340e0.zip
Fix all_overlays = True and selection of keywords
-rw-r--r--modules/portage_module.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/portage_module.py b/modules/portage_module.py
index 2d2b7d7..89fed55 100644
--- a/modules/portage_module.py
+++ b/modules/portage_module.py
@@ -80,6 +80,7 @@ def find_packages_in_tree(package_list, portdir=None, all_overlays=False, overla
#overlays = ["/home/allanon/cvs/gnome"]
portage_versions = []
+ overlays = portage.settings['PORTDIR_OVERLAY']
if all_overlays is False:
overlays = ''
@@ -94,9 +95,9 @@ def find_packages_in_tree(package_list, portdir=None, all_overlays=False, overla
keywords = 'amd64 ~amd64' # the arch I care for :]
if portdir is not None:
- mysettings = portage.config(env={'PORTDIR_OVERLAY': overlays, 'KEYWORDS': keywords, 'PORTDIR': portdir})
+ mysettings = portage.config(env={'PORTDIR_OVERLAY': overlays, 'ACCEPT_KEYWORDS': keywords, 'PORTDIR': portdir})
else:
- mysettings = portage.config(env={'PORTDIR_OVERLAY': overlays, 'KEYWORDS': keywords})
+ mysettings = portage.config(env={'PORTDIR_OVERLAY': overlays, 'ACCEPT_KEYWORDS': keywords})
portdbapi = portage.portdbapi(mysettings=mysettings)