summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-05 18:57:35 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-05 18:57:35 +0000
commit21d84f731674d5b41b8e66b37855acd1007c53d3 (patch)
tree2ecd82f6de8742ee95d558bfee57a6dc4c8b6eeb
parentddd7ffd33befda7287afafdf7a873fe90db64520 (diff)
downloadportage-21d84f731674d5b41b8e66b37855acd1007c53d3.tar.gz
portage-21d84f731674d5b41b8e66b37855acd1007c53d3.tar.bz2
portage-21d84f731674d5b41b8e66b37855acd1007c53d3.zip
Remove a dead and broken hunk of code that attempts to remove files from an empty directory.
svn path=/main/trunk/; revision=2814
-rw-r--r--pym/portage.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/pym/portage.py b/pym/portage.py
index c36e19193..10c793f27 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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)