From: Zac Medico Date: Sun, 5 Mar 2006 18:57:35 +0000 (-0000) Subject: Remove a dead and broken hunk of code that attempts to remove files from an empty... X-Git-Tag: v2.1_pre6~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=21d84f731674d5b41b8e66b37855acd1007c53d3;p=portage.git Remove a dead and broken hunk of code that attempts to remove files from an empty directory. svn path=/main/trunk/; revision=2814 --- 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)