summaryrefslogtreecommitdiffstats
path: root/openembedded/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded/classes/base.bbclass')
-rw-r--r--openembedded/classes/base.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/openembedded/classes/base.bbclass b/openembedded/classes/base.bbclass
index 9b87828594..21feaab6e6 100644
--- a/openembedded/classes/base.bbclass
+++ b/openembedded/classes/base.bbclass
@@ -371,7 +371,11 @@ def oe_unpack_file(file, data, url = None):
371 elif file.endswith('.bz2'): 371 elif file.endswith('.bz2'):
372 cmd = 'bzip2 -dc %s > %s' % (file, efile) 372 cmd = 'bzip2 -dc %s > %s' % (file, efile)
373 elif file.endswith('.zip'): 373 elif file.endswith('.zip'):
374 cmd = 'unzip -q %s' % file 374 cmd = 'unzip -q'
375 (type, host, path, user, pswd, parm) = bb.decodeurl(url)
376 if 'dos' in parm:
377 cmd = '%s -a' % cmd
378 cmd = '%s %s' % (cmd, file)
375 elif os.path.isdir(file): 379 elif os.path.isdir(file):
376 filesdir = os.path.realpath(bb.data.getVar("FILESDIR", data, 1)) 380 filesdir = os.path.realpath(bb.data.getVar("FILESDIR", data, 1))
377 destdir = "." 381 destdir = "."
@@ -449,7 +453,7 @@ python base_do_patch() {
449 if not "patch" in parm: 453 if not "patch" in parm:
450 continue 454 continue
451 455
452 bb.fetch.init([url], d) 456 bb.fetch.init([url],d)
453 url = bb.encodeurl((type, host, path, user, pswd, [])) 457 url = bb.encodeurl((type, host, path, user, pswd, []))
454 local = os.path.join('/', bb.fetch.localpath(url, d)) 458 local = os.path.join('/', bb.fetch.localpath(url, d))
455 459