From: Joshua Lock Date: Mon, 6 Sep 2010 11:28:00 +0000 (+0100) Subject: fetch: fix setting of localpath in SRC_URI parameters X-Git-Tag: 2011-1~4599 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=b78d5368ccd333587ec475be3f3fe058ec9045f2;p=openembedded-core.git 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 --- diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 9a99b346b3..8d7ec8036c 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 = ""