From 0490f1075976345333141cddf2e0d7c3ddeeb055 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 13 Oct 2007 05:59:12 +0000 Subject: [PATCH] Remove a chdir() call that's no longer needed for the collision-protect symlink code. svn path=/main/trunk/; revision=8098 --- pym/portage/dbapi/vartree.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index dd982408b..ded0943af 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1477,12 +1477,6 @@ class dblink(object): def _collision_protect(self, srcroot, destroot, mypkglist, mycontents, mysymlinks): collision_ignore = set([normalize_path(myignore) for myignore in \ self.settings.get("COLLISION_IGNORE", "").split()]) - - # the linkcheck only works if we are in srcroot - mycwd = os.getcwd() - os.chdir(srcroot) - - mysymlinked_directories = [s + os.path.sep for s in mysymlinks] del mysymlinks @@ -1601,10 +1595,6 @@ class dblink(object): print "None of the installed packages claim the above file(s)." print sys.exit(1) - try: - os.chdir(mycwd) - except OSError: - pass return collisions def _security_check(self, installed_instances): -- 2.26.2