bitbake/fetch/local: Fix os.exists reference
authorRichard Purdie <rpurdie@linux.intel.com>
Sat, 13 Nov 2010 02:23:15 +0000 (10:23 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Sat, 13 Nov 2010 02:23:15 +0000 (10:23 +0800)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/fetch/local.py

index 3553f37..f9f8994 100644 (file)
@@ -51,7 +51,7 @@ class Local(Fetch):
                 newpath = bb.utils.which(filespath, path)
             if not newpath:
                  dlpath = os.path.join(data.getVar('DL_DIR', d, True), path)
-                 if os.exists(dlpath):
+                 if os.path.exists(dlpath):
                      newpath = dlpath
             if not newpath:
                 filesdir = data.getVar('FILESDIR', d, 1)