aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-03-06 21:15:17 +0000
committerMike McQuaid2014-03-08 00:54:35 +0000
commit5eb27195f9b8d3c4cee2e4323ed633c9701e9013 (patch)
tree98c77c99dd4d31b3ae793cecaca07d3671d2f644 /Library
parentf4a46798db32fa472e92b763d2c0687e210ba0ef (diff)
downloadhomebrew-5eb27195f9b8d3c4cee2e4323ed633c9701e9013.tar.bz2
audit: don't use GitHub zip files.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 99c957b4b..1a81a55d1 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -265,6 +265,11 @@ class FormulaAuditor
urls.select { |u| u =~ %r[https://.*/(?:tar|zip)ball/] && u !~ %r[\.git$] }.each do |u|
problem "Use /archive/ URLs for GitHub tarballs (url is #{u})."
end
+
+ # Don't use GitHub .zip files
+ urls.select { |u| u =~ %r[https://.*github.*/(archive|releases)/.*\.zip$] && u !~ %r[releases/download] }.each do |u|
+ problem "Use GitHub tarballs rather than zipballs (url is #{u})."
+ end
end
def audit_specs