diff options
| author | Richard Purdie <richard@openedhand.com> | 2006-03-23 22:31:13 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2006-03-23 22:31:13 +0000 |
| commit | bb28692880e3a66abec03de4f9951eca1078a919 (patch) | |
| tree | 85562c6a8dde6cbc59564d4d134e6c4d58275d1b /openembedded/classes/base.bbclass | |
| parent | b3f42b759915ee078b192c43b37a86a219d15ebf (diff) | |
| download | poky-bb28692880e3a66abec03de4f9951eca1078a919.tar.gz | |
Sync class files with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@328 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/base.bbclass')
| -rw-r--r-- | openembedded/classes/base.bbclass | 8 |
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 | ||
