diff options
author | Fabian Groffen <grobian@gentoo.org> | 2009-09-05 11:13:33 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2009-09-05 11:13:33 +0000 |
commit | 119111ee91e9defbcbcc1795155a54e2a521c83b (patch) | |
tree | c5920ba98fdabef2df3e71d5362ec3d2cc507b5f /pym/portage/sets/files.py | |
parent | 73962c1a9b24b956aa65c9475ef485fec3d571db (diff) | |
download | portage-119111ee91e9defbcbcc1795155a54e2a521c83b.tar.gz portage-119111ee91e9defbcbcc1795155a54e2a521c83b.tar.bz2 portage-119111ee91e9defbcbcc1795155a54e2a521c83b.zip |
pym/portage/sets/files.py: use WORLD_FILE instead of manual reconstruction
pym/portage/const.py: introduce WORLD_SETS_FILE variable
pym/portage/sets/files.py: use new WORLD_SETS_FILE var
pym/_emerge/unmerge.py: likewise
svn path=/main/trunk/; revision=14197
Diffstat (limited to 'pym/portage/sets/files.py')
-rw-r--r-- | pym/portage/sets/files.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/sets/files.py b/pym/portage/sets/files.py index 7c5a6c766..13c8508e0 100644 --- a/pym/portage/sets/files.py +++ b/pym/portage/sets/files.py @@ -11,7 +11,7 @@ from portage import _encodings from portage import _unicode_decode from portage import _unicode_encode from portage.util import grabfile, write_atomic, ensure_dirs, normalize_path -from portage.const import PRIVATE_PATH, USER_CONFIG_PATH +from portage.const import USER_CONFIG_PATH, WORLD_FILE, WORLD_SETS_FILE from portage.localization import _ from portage.locks import lockfile, unlockfile from portage import portage_gid @@ -213,11 +213,11 @@ class WorldSet(EditablePackageSet): # most attributes exist twice as atoms and non-atoms are stored in # separate files self._lock = None - self._filename = os.path.join(os.sep, root, PRIVATE_PATH), "world") + self._filename = os.path.join(os.sep, root, WORLD_FILE) self.loader = ItemFileLoader(self._filename, self._validate) self._mtime = None - self._filename2 = os.path.join(os.sep, root, PRIVATE_PATH), "world_sets") + self._filename2 = os.path.join(os.sep, root, WORLD_SETS_FILE) self.loader2 = ItemFileLoader(self._filename2, self._validate2) self._mtime2 = None |