]> code.ossystems Code Review - openembedded-core.git/commitdiff
fetch: fix setting of localpath in SRC_URI parameters
authorJoshua Lock <josh@linux.intel.com>
Mon, 6 Sep 2010 11:28:00 +0000 (12:28 +0100)
committerJoshua Lock <josh@linux.intel.com>
Mon, 6 Sep 2010 13:32:31 +0000 (14:32 +0100)
When setting localpath in the SRC_URI parameters the basename should be set
explicitly as the localpath() method is not called.

Fixes [BUGID #81]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
bitbake/lib/bb/fetch/__init__.py

index 9a99b346b310ebf1fad932a398b704d8e7e9b157..8d7ec8036c72b2475f335a11525f804c1b0e8865 100644 (file)
@@ -499,6 +499,7 @@ class FetchData(object):
         if "localpath" in self.parm:
             # if user sets localpath for file, use it instead.
             self.localpath = self.parm["localpath"]
+            self.basename = os.path.basename(self.localpath)
         else:
             premirrors = bb.data.getVar('PREMIRRORS', d, True)
             local = ""