summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 49e45350f..46944a943 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1877,7 +1877,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
raise portage_exception.OperationNotPermitted(
"Failed to apply recursive permissions for the portage group.")
except portage_exception.PortageException, e:
- if not os.path.dir(mysettings["DISTDIR"]):
+ if not os.path.isdir(mysettings["DISTDIR"]):
writemsg("!!! %s\n" % str(e))
writemsg("!!! Directory Not Found: DISTDIR='%s'\n" % mysettings["DISTDIR"])
writemsg("!!! Fetching will fail!\n")