From c158582c0fc7f4bd73980fe9adad446855f4d61b Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 10 Oct 2014 03:19:54 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- .../virt-test/files/fix_asset_uncompress.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 recipes-test/virt-test/files/fix_asset_uncompress.patch (limited to 'recipes-test/virt-test/files/fix_asset_uncompress.patch') diff --git a/recipes-test/virt-test/files/fix_asset_uncompress.patch b/recipes-test/virt-test/files/fix_asset_uncompress.patch new file mode 100644 index 0000000..9b2b05c --- /dev/null +++ b/recipes-test/virt-test/files/fix_asset_uncompress.patch @@ -0,0 +1,29 @@ +virt-test: Fixed asset uncompression + +Fix a mismatch in the uncompress command to allow it to work also with +the other compression types. + +Upstream-Status: Accepted +https://github.com/autotest/virt-test/commit/a4f4b89b0bf3adffb0188f4091b5c66d41f7eba7 + +Signed-off-by: Petre Pircalabu + +--- a/virttest/asset.py ++++ b/virttest/asset.py +@@ -91,13 +91,13 @@ def uncompress_asset(asset_info, force=F + if match: + if match.group(1) == 'gz': + uncompress_cmd = ('gzip -cd %s > %s' % +- (destination_uncompressed, destination)) ++ (destination, destination_uncompressed)) + elif match.group(1) == 'xz': + uncompress_cmd = ('xz -cd %s > %s' % +- (destination_uncompressed, destination)) ++ (destination, destination_uncompressed)) + elif match.group(1) == 'bz2': + uncompress_cmd = ('bzip2 -cd %s > %s' % +- (destination_uncompressed, destination)) ++ (destination, destination_uncompressed)) + elif match.group(1) == '7z': + uncompress_cmd = '7za -y e %s' % destination + else: -- cgit v1.2.3-54-g00ecf