generic-poky/bitbake/lib/bb/fetch2
André Draszik d45486eb1c bitbake: fetch2: fix unpack of .xz files
If a file ends with .xz, it currently gets overwritten during unpack:
The decompress command for .xz files is:
  'xz -dc %s > %s' % (file, efile)
and as efile == file, we end up overwriting file (the source).

Fix this by adding .xz to the list of suffixes that that need to
be removed from a file name for an extract command, leaving the
bare file name. Now, for a given file foo.xz,
file == foo.xz and efile == foo, similar to how .gz .bz2 and .Z
files are treated.

(Bitbake rev: 2cd2d0a48e12ab4358fb967eaf7a56c17993f48d)

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-07-31 06:59:59 +01:00
..
__init__.py bitbake: fetch2: fix unpack of .xz files 2013-07-31 06:59:59 +01:00
bzr.py bitbake: fetch2/git: Clean up sortable_revision 2013-05-22 12:10:12 +01:00
cvs.py bitbake: fetch2/cvs: Fix parameter spacing 2012-09-20 11:37:17 +01:00
git.py bitbake: git: remove symling before updating mirror tarball 2013-05-09 14:15:10 +01:00
gitsm.py bitbake: bitbake/fetch: Add git submodules fetcher 2013-03-25 15:58:31 +00:00
hg.py bitbake: hg.py: Fixed fetch failure that occurs when SRCREV is a tag. 2013-01-18 12:50:13 +00:00
local.py bitbake: fetch2/local: Fix bug introduced by expression ambiguity 2012-11-26 20:57:30 +00:00
osc.py bitbake: fetch2/osc.py: Use "protocol" parameter to get the protocol 2012-07-11 15:55:25 +01:00
perforce.py bitbake: perforce.py: fix the perforce fetcher 2013-02-25 05:58:20 -08:00
repo.py fetch, fetch2: Get rid of DeprecationWarning notice 2011-03-03 22:51:33 +00:00
sftp.py bitbake: fetch2: Add SFTP fetcher 2013-02-17 22:32:05 +00:00
ssh.py bitbake: ssh.py: add example SRC_URI 2013-01-31 12:46:21 +00:00
svk.py replace os.popen with subprocess.Popen 2012-05-23 11:35:11 +01:00
svn.py bitbake: fetch2/git: Clean up sortable_revision 2013-05-22 12:10:12 +01:00
wget.py bitbake: wget: Improve mkdir handling 2013-02-19 14:00:32 -08:00