diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-09-06 12:28:00 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-09-06 14:32:31 +0100 |
commit | b78d5368ccd333587ec475be3f3fe058ec9045f2 (patch) | |
tree | ec8faa1ab1c6f16bb2747c3fa5d504b78a322ffb /bitbake/lib | |
parent | aa3d81f67c8d7026dd8debc3674d28d8542ada1c (diff) | |
download | poky-b78d5368ccd333587ec475be3f3fe058ec9045f2.tar.gz |
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')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): | |||
499 | if "localpath" in self.parm: | 499 | if "localpath" in self.parm: |
500 | # if user sets localpath for file, use it instead. | 500 | # if user sets localpath for file, use it instead. |
501 | self.localpath = self.parm["localpath"] | 501 | self.localpath = self.parm["localpath"] |
502 | self.basename = os.path.basename(self.localpath) | ||
502 | else: | 503 | else: |
503 | premirrors = bb.data.getVar('PREMIRRORS', d, True) | 504 | premirrors = bb.data.getVar('PREMIRRORS', d, True) |
504 | local = "" | 505 | local = "" |