summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-09-06 12:28:00 +0100
committerJoshua Lock <josh@linux.intel.com>2010-09-06 14:32:31 +0100
commitb78d5368ccd333587ec475be3f3fe058ec9045f2 (patch)
treeec8faa1ab1c6f16bb2747c3fa5d504b78a322ffb /bitbake/lib/bb
parentaa3d81f67c8d7026dd8debc3674d28d8542ada1c (diff)
downloadopenembedded-core-b78d5368ccd333587ec475be3f3fe058ec9045f2.tar.gz
openembedded-core-b78d5368ccd333587ec475be3f3fe058ec9045f2.tar.bz2
openembedded-core-b78d5368ccd333587ec475be3f3fe058ec9045f2.tar.xz
openembedded-core-b78d5368ccd333587ec475be3f3fe058ec9045f2.zip
fetch: fix setting of localpath in SRC_URI parameters
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>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 9a99b346b..8d7ec8036 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -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 = ""