summaryrefslogtreecommitdiffstats
path: root/pym/portage/glsa.py
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2009-09-05 10:25:30 +0000
committerFabian Groffen <grobian@gentoo.org>2009-09-05 10:25:30 +0000
commit3bbf51d00ad96e5927ce4d84712fe0e30fbd0212 (patch)
tree291941aa5d5a08eaf2b3729192a4dfe64da6a915 /pym/portage/glsa.py
parent2b68c711bc37fe45c940a498227f2c367335b659 (diff)
downloadportage-3bbf51d00ad96e5927ce4d84712fe0e30fbd0212.tar.gz
portage-3bbf51d00ad96e5927ce4d84712fe0e30fbd0212.tar.bz2
portage-3bbf51d00ad96e5927ce4d84712fe0e30fbd0212.zip
consistently use CACHE_PATH with target_root, this commit needs a separate soon to be done commit of pym/portage/const.py to work correctly
svn path=/main/trunk/; revision=14188
Diffstat (limited to 'pym/portage/glsa.py')
-rw-r--r--pym/portage/glsa.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/glsa.py b/pym/portage/glsa.py
index db297995d..6dc73ac67 100644
--- a/pym/portage/glsa.py
+++ b/pym/portage/glsa.py
@@ -33,7 +33,7 @@ def get_applied_glsas(settings):
@rtype: list
@return: list of glsa IDs
"""
- return grabfile(os.path.join(os.sep, settings["ROOT"], CACHE_PATH.lstrip(os.sep), "glsa"))
+ return grabfile(os.path.join(os.sep, settings["ROOT"], CACHE_PATH, "glsa"))
# TODO: use the textwrap module instead
@@ -655,7 +655,7 @@ class Glsa:
if not self.isApplied():
checkfile = codecs.open(
_unicode_encode(os.path.join(os.sep, self.config["ROOT"],
- CACHE_PATH.lstrip(os.sep), "glsa"),
+ CACHE_PATH, "glsa"),
encoding=_encodings['fs'], errors='strict'),
mode='a+', encoding=_encodings['content'], errors='strict')
checkfile.write(self.nr+"\n")