diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-12 21:29:04 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-12 21:29:04 +0000 |
commit | fe0052eb5f671ba368935e8204036950406373ff (patch) | |
tree | 885c5e821909a4bfe0bccee038160703ef613516 | |
parent | f126b81886867e836fdd0ab9381404e4e4ca8d07 (diff) | |
download | portage-fe0052eb5f671ba368935e8204036950406373ff.tar.gz portage-fe0052eb5f671ba368935e8204036950406373ff.tar.bz2 portage-fe0052eb5f671ba368935e8204036950406373ff.zip |
Remove some useless dircache code.
svn path=/main/trunk/; revision=6818
-rw-r--r-- | pym/portage/dbapi/vartree.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 2d2fc99bc..078dff286 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -21,7 +21,7 @@ from portage.util import apply_secpass_permissions, ConfigProtect, ensure_dirs, from portage.versions import pkgsplit, catpkgsplit, catsplit, best, pkgcmp from portage import listdir, dep_expand, config, flatten, key_expand, \ - doebuild_environment, doebuild, env_update, dircache, \ + doebuild_environment, doebuild, env_update, \ abssymlink, movefile, bsd_chflags import os, sys, stat, errno, commands, copy, time @@ -1124,8 +1124,6 @@ class dblink(object): @type new_contents: Dictionary @rtype: None """ - global dircache - dircache={} if not pkgfiles: writemsg_stdout("No package files given... Grabbing a set.\n") @@ -1748,10 +1746,7 @@ class dblink(object): env_update(makelinks=(not downgrade), target_root=self.settings["ROOT"], prev_mtimes=prev_mtimes, contents=contents, env=self.settings.environ()) - #dircache may break autoclean because it remembers the -MERGING-pkg file - global dircache - if dircache.has_key(self.dbcatdir): - del dircache[self.dbcatdir] + writemsg_stdout(">>> %s %s\n" % (self.mycpv,"merged.")) # Process ebuild logfiles |