* [PATCH 0/1] Fix for YB6562
@ 2014-07-31 10:29 Roxana Ciobanu
2014-07-31 10:29 ` [PATCH 1/1] SRC_URI parameter: "subdir" does not work for local files Roxana Ciobanu
0 siblings, 1 reply; 2+ messages in thread
From: Roxana Ciobanu @ 2014-07-31 10:29 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 2d1660112e54653f7bb763939d0416472c49fe01:
populate_sdk_base: Fix grep command usage on old hosts (2014-07-29 09:58:27 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib roxana/YB6562
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=roxana/YB6562
Roxana Ciobanu (1):
SRC_URI parameter: "subdir" does not work for local files
bitbake/lib/bb/fetch2/__init__.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] SRC_URI parameter: "subdir" does not work for local files
2014-07-31 10:29 [PATCH 0/1] Fix for YB6562 Roxana Ciobanu
@ 2014-07-31 10:29 ` Roxana Ciobanu
0 siblings, 0 replies; 2+ messages in thread
From: Roxana Ciobanu @ 2014-07-31 10:29 UTC (permalink / raw)
To: openembedded-core
Check if the 'subdir' parameter exists and assign it to 'destdir' so that
files are copied in ${WORKDIR}/destdir.
Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
---
bitbake/lib/bb/fetch2/__init__.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index df2f2b0..68c8329 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1265,7 +1265,10 @@ class FetchMethod(object):
if urldata.type == "file" and urldata.path.find("/") != -1:
destdir = urldata.path.rsplit("/", 1)[0]
else:
- destdir = "."
+ if urldata.parm.get('subdir') != None:
+ destdir = urldata.parm.get('subdir')
+ else:
+ destdir = "."
bb.utils.mkdirhier("%s/%s" % (rootdir, destdir))
cmd = 'cp -f %s %s/%s/' % (file, rootdir, destdir)
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-31 10:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 10:29 [PATCH 0/1] Fix for YB6562 Roxana Ciobanu
2014-07-31 10:29 ` [PATCH 1/1] SRC_URI parameter: "subdir" does not work for local files Roxana Ciobanu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox