summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-04 10:07:35 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-04 10:07:35 +0000
commit6eb1ca2326c2021f4106b6a39e784b968746a9a6 (patch)
tree50f81a5406200de019c5279c0e55880688403bf0
parent188abf0a7f910caba9d75fc570fdf962472f9355 (diff)
downloadportage-6eb1ca2326c2021f4106b6a39e784b968746a9a6.tar.gz
portage-6eb1ca2326c2021f4106b6a39e784b968746a9a6.tar.bz2
portage-6eb1ca2326c2021f4106b6a39e784b968746a9a6.zip
Use portage.chdir() instead of os.chdir() in order to avoid an 'OSError: [Errno 2] No such file or directory' if the working directory doesn't exist. Thanks to Caster for reporting.
svn path=/main/trunk/; revision=5171
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index dbfe5605b..5b0e9fb35 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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)