Fix a typo from r3058.
authorZac Medico <zmedico@gentoo.org>
Mon, 3 Apr 2006 05:08:21 +0000 (05:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 3 Apr 2006 05:08:21 +0000 (05:08 -0000)
svn path=/main/trunk/; revision=3063

pym/portage.py

index 49e45350f942131392e3db45e16365e024a83dde..46944a943ea4175791c1c0eeb901d6d68e2bc42f 100644 (file)
@@ -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")