From 21d84f731674d5b41b8e66b37855acd1007c53d3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 5 Mar 2006 18:57:35 +0000 Subject: [PATCH] Remove a dead and broken hunk of code that attempts to remove files from an empty directory. svn path=/main/trunk/; revision=2814 --- pym/portage.py | 9 --------- 1 file changed, 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) -- 2.26.2