mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
@@ -499,6 +499,7 @@ class FetchData(object):
|
|||||||
if "localpath" in self.parm:
|
if "localpath" in self.parm:
|
||||||
# if user sets localpath for file, use it instead.
|
# if user sets localpath for file, use it instead.
|
||||||
self.localpath = self.parm["localpath"]
|
self.localpath = self.parm["localpath"]
|
||||||
|
self.basename = os.path.basename(self.localpath)
|
||||||
else:
|
else:
|
||||||
premirrors = bb.data.getVar('PREMIRRORS', d, True)
|
premirrors = bb.data.getVar('PREMIRRORS', d, True)
|
||||||
local = ""
|
local = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user