summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2007-08-12 12:09:22 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2007-08-12 12:09:22 +0000
commited1ad9242877840e2aaccc7dbca53e49e310a202 (patch)
tree8f7625a611de531d4ad6528e4a3e2d0492d0133b
parent1db515ce4dfcb86f6502892ad8c5f7ccce5690f6 (diff)
downloadbitbake-ed1ad9242877840e2aaccc7dbca53e49e310a202.tar.gz
fetch/local.py: Fix local fetcher's localpath return values (remove parameters)
-rw-r--r--ChangeLog1
-rw-r--r--lib/bb/fetch/local.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8d34bf196..70a59a725 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,7 @@ Changes in Bitbake 1.8.x:
- Add profiling option (-P)
- Add BB_SRCREV_POLICY variable (clear or cache) to control SRCREV cache
- Add SRCREV_FORMAT support
+ - Fix local fetcher's localpath return values
Changes in Bitbake 1.8.6:
- Correctly redirect stdin when forking
diff --git a/lib/bb/fetch/local.py b/lib/bb/fetch/local.py
index 9be8f1ce4..5e480a208 100644
--- a/lib/bb/fetch/local.py
+++ b/lib/bb/fetch/local.py
@@ -38,9 +38,11 @@ class Local(Fetch):
return urldata.type in ['file','patch']
def localpath(self, url, urldata, d):
- """Return the local filename of a given url assuming a successful fetch.
+ """
+ Return the local filename of a given url assuming a successful fetch.
"""
path = url.split("://")[1]
+ path = path.split(";")[0]
newpath = path
if path[0] != "/":
filespath = data.getVar('FILESPATH', d, 1)