projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edc7b0e
)
Add EPREFIX support to load_default_config().
author
Zac Medico
<zmedico@gentoo.org>
Sat, 21 Aug 2010 20:43:49 +0000
(13:43 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 21 Aug 2010 20:43:49 +0000
(13:43 -0700)
pym/portage/sets/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/sets/__init__.py
b/pym/portage/sets/__init__.py
index dc6661480fb91e68a630dc84a159bfb363efa3bc..2f65f98bf8411ade3e6e2e6bb2fd492735180557 100644
(file)
--- a/
pym/portage/sets/__init__.py
+++ b/
pym/portage/sets/__init__.py
@@
-176,8
+176,12
@@
class SetConfig(object):
return myatoms
def load_default_config(settings, trees):
+ global_config_path = GLOBAL_CONFIG_PATH
+ if settings['EPREFIX']:
+ global_config_path = os.path.join(settings['EPREFIX'],
+ GLOBAL_CONFIG_PATH.lstrip(os.sep))
def _getfiles():
- for path, dirs, files in os.walk(os.path.join(
GLOBAL_CONFIG_PATH
, "sets")):
+ for path, dirs, files in os.walk(os.path.join(
global_config_path
, "sets")):
for f in files:
yield os.path.join(path, f)