summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-03-15 14:18:11 +0100
committerTomas Chvatal <scarabeus@gentoo.org>2011-03-15 14:18:11 +0100
commite0fd4726fc2b1808a3bd8d5b99d5eb61091bde11 (patch)
tree689602f873f5d515c91762aa2f106f07efa332ee /modules
parentFix all_overlays = True and selection of keywords (diff)
downloadgentoo-bumpchecker-e0fd4726fc2b1808a3bd8d5b99d5eb61091bde11.tar.gz
gentoo-bumpchecker-e0fd4726fc2b1808a3bd8d5b99d5eb61091bde11.tar.bz2
gentoo-bumpchecker-e0fd4726fc2b1808a3bd8d5b99d5eb61091bde11.zip
Fix the stable detection to really work.
Diffstat (limited to 'modules')
-rw-r--r--modules/portage_module.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/portage_module.py b/modules/portage_module.py
index 89fed55..7aac61f 100644
--- a/modules/portage_module.py
+++ b/modules/portage_module.py
@@ -95,10 +95,12 @@ 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, 'ACCEPT_KEYWORDS': keywords, 'PORTDIR': portdir})
+ mysettings = portage.config(local_config=False, env={'PORTDIR_OVERLAY': overlays, 'ACCEPT_KEYWORDS': keywords, 'PORTDIR': portdir})
else:
- mysettings = portage.config(env={'PORTDIR_OVERLAY': overlays, 'ACCEPT_KEYWORDS': keywords})
+ mysettings = portage.config(local_config=False, env={'PORTDIR_OVERLAY': overlays, 'ACCEPT_KEYWORDS': keywords})
+ # hack because the above did not work :/
+ mysettings['ACCEPT_KEYWORDS'] = keywords
portdbapi = portage.portdbapi(mysettings=mysettings)
for package in package_list: