summaryrefslogtreecommitdiffstats
path: root/pym/portage/update.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-07-12 20:45:53 +0000
committerZac Medico <zmedico@gentoo.org>2009-07-12 20:45:53 +0000
commitc54a920d60415f19b3a42796193d87b6b21c84a1 (patch)
treefde9fd7ed67c42f3792badbb362415b24d4893fd /pym/portage/update.py
parent6c13644725a2371993fcf1d484e8852122a8b21e (diff)
downloadportage-c54a920d60415f19b3a42796193d87b6b21c84a1.tar.gz
portage-c54a920d60415f19b3a42796193d87b6b21c84a1.tar.bz2
portage-c54a920d60415f19b3a42796193d87b6b21c84a1.zip
Remove leading slash from appropriate paths inside portage.const, so that
lstrip(os.sep) is not needed for os.path.join() calls. Thanks to Fabian Groffen <grobian@g.o> for this patch. svn path=/main/trunk/; revision=13821
Diffstat (limited to 'pym/portage/update.py')
-rw-r--r--pym/portage/update.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/update.py b/pym/portage/update.py
index 70ff68664..c7001803a 100644
--- a/pym/portage/update.py
+++ b/pym/portage/update.py
@@ -152,8 +152,7 @@ def update_config_files(config_root, protect, protect_mask, update_iter):
myxfiles = ["package.mask", "package.unmask", \
"package.keywords", "package.use"]
myxfiles += [os.path.join("profile", x) for x in myxfiles]
- abs_user_config = os.path.join(config_root,
- USER_CONFIG_PATH.lstrip(os.path.sep))
+ abs_user_config = os.path.join(config_root, USER_CONFIG_PATH)
recursivefiles = []
for x in myxfiles:
config_file = os.path.join(abs_user_config, x)