From 74d51c8c3e18a8b6738aff0c6f7ff706fd70eaa6 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 13:57:02 +0200 Subject: initial commit for Enea Linux 4.0 Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau --- .../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