Remove some useless dircache code.
authorZac Medico <zmedico@gentoo.org>
Tue, 12 Jun 2007 21:29:04 +0000 (21:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 12 Jun 2007 21:29:04 +0000 (21:29 -0000)
svn path=/main/trunk/; revision=6818

pym/portage/dbapi/vartree.py

index 2d2fc99bcbe991570b834305e6ba1f11ca0f1a2d..078dff2864d9d3ca9756ae7436cb4865096f6ff8 100644 (file)
@@ -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