From 51e576061585d196f7de5139014008c2b5eea5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Mon, 24 Sep 2012 16:26:50 +1200 Subject: [PATCH] Allow wider definition for _zip? Some zip files have a different definition, e.g. Minecraft has: application/xml; charset=utf-8 compressed-encoding=application/zip; charset=binary; charset=binary Most other zips have: application/x-empty; compressed-encoding=application/zip; charset=binary; charset=binary But the result is the same. So now we test only for: compressed-encoding=application/zip; charset=binary; charset=binary --- lib/cask.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cask.rb b/lib/cask.rb index 740478420..74a8d97ea 100644 --- a/lib/cask.rb +++ b/lib/cask.rb @@ -199,7 +199,7 @@ class Cask def _zip?(path) output = `file -Izb #{path}` - output.chomp == 'application/x-empty compressed-encoding=application/zip; charset=binary; charset=binary' + output.chomp.include? 'compressed-encoding=application/zip; charset=binary; charset=binary' end def _tar_bzip?(path)