From 08d674fe4372f47677879795627df3cf5eedb8ec Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Mon, 27 Jun 2016 18:05:22 +0200 Subject: [PATCH] bug #4601: allow both old and new gzip mimetype --- src/datastore_mad/remotes/vcenter/cp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datastore_mad/remotes/vcenter/cp b/src/datastore_mad/remotes/vcenter/cp index 89e01dfdef..99975a84f1 100755 --- a/src/datastore_mad/remotes/vcenter/cp +++ b/src/datastore_mad/remotes/vcenter/cp @@ -67,7 +67,7 @@ def needs_unpack?(file) end type = get_type(file_path) - type.gsub!(%r{^application/x-}, '') + type.gsub!(%r{^application/(x-)?}, '') unpack = %w{bzip2 gzip tar}.include?(type) temp.unlink