summaryrefslogtreecommitdiffstats
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2011-01-06 12:48:29 +0000
committerKhem Raj <raj.khem@gmail.com>2011-01-15 16:05:16 -0800
commit2bdfe8519eda8067845019a699acdf19a21ba380 (patch)
tree6bc81c572458b8e0ff31eebf3b4aeca4a38a82b4 /classes/base.bbclass
parent54573959d3f6479ac6e26a9a4a4d2d258082a8df (diff)
downloadopenembedded-2bdfe8519eda8067845019a699acdf19a21ba380.tar.gz
unpack.py: add SRC_URI parameter unpack=<bool> (default: true)
* This allows to download compressed files without extracting them * Use case: gcj requires ecj.jar, which must be downloaded separately and put into the gcc source directory before configure gets executed. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> CC: Chris Larson <chris_larson@mentor.com> Reviewed-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index c76b77ddef..25d72d4272 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -190,12 +190,11 @@ def oe_unpack(d, local, urldata):
bb.mkdirhier(destdir)
else:
destdir = workdir
- dos = urldata.parm.get("dos")
bb.note("Unpacking %s to %s/" % (base_path_out(local, d),
base_path_out(destdir, d)))
try:
- unpack_file(local, destdir, env={"PATH": d.getVar("PATH", True)}, dos=dos)
+ unpack_file(local, destdir, urldata.parm, env={"PATH": d.getVar("PATH", True)})
except UnpackError, exc:
bb.fatal(str(exc))