Use portage.chdir() instead of os.chdir() in order to avoid an 'OSError: [Errno 2...
authorZac Medico <zmedico@gentoo.org>
Mon, 4 Dec 2006 10:07:35 +0000 (10:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 4 Dec 2006 10:07:35 +0000 (10:07 -0000)
svn path=/main/trunk/; revision=5171

pym/portage.py

index dbfe5605bb3e57322262bef79a4344d95b573698..5b0e9fb353dd79fb73a3adc4867dd8ecef5cb3f4 100644 (file)
@@ -6554,7 +6554,7 @@ class dblink:
                        myfilelist = listdir(srcroot, recursive=1, filesonly=1, followSymlinks=False)
 
                        # the linkcheck only works if we are in srcroot
-                       mycwd = os.getcwd()
+                       mycwd = getcwd()
                        os.chdir(srcroot)
                        mysymlinks = filter(os.path.islink, listdir(srcroot, recursive=1, filesonly=0, followSymlinks=False))
                        myfilelist.extend(mysymlinks)