Remove a dead and broken hunk of code that attempts to remove files from an empty...
authorZac Medico <zmedico@gentoo.org>
Sun, 5 Mar 2006 18:57:35 +0000 (18:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 5 Mar 2006 18:57:35 +0000 (18:57 -0000)
svn path=/main/trunk/; revision=2814

pym/portage.py

index c36e191939c74da65420d7e8f92e0d182eda03ee..10c793f2704ca9ecfbafd74c374ed5d285ceaa39 100644 (file)
@@ -6054,15 +6054,6 @@ class dblink:
                        os.makedirs(destroot+PRIVATE_PATH)
                        os.chown(destroot+PRIVATE_PATH,os.getuid(),portage_gid)
                        os.chmod(destroot+PRIVATE_PATH,02770)
-                       dirlist = prefix_array(listdir(destroot+PRIVATE_PATH),destroot+PRIVATE_PATH+"/")
-                       while dirlist:
-                               dirlist.sort()
-                               dirlist.reverse() # Gets them in file-before basedir order
-                               x = dirlist[0]
-                               if os.path.isdir(x):
-                                       dirlist += prefix_array(listdir(x),x+"/")
-                                       continue
-                               os.unlink(destroot+PRIVATE_PATH+"/"+x)
 
                mylock = portage_locks.lockfile(destroot+CONFIG_MEMORY_FILE)
                writedict(cfgfiledict,destroot+CONFIG_MEMORY_FILE)