Commit 4fdd77c6 authored by lovedheart's avatar lovedheart Committed by GitHub

Update intltool.rb

add abort
parent afea9d6f
......@@ -13,6 +13,7 @@ class Intltool < Package
def self.patch
system "wget https://raw.githubusercontent.com/Alexpux/MSYS2-packages/master/intltool/perl-5.22-compatibility.patch"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('perl-5.22-compatibility.patch') ) == '9c6527072aada6e3cb9aceb6e07cfdf51d58839a2beb650168da0601a85ebda3'
system "patch intltool-update.in perl-5.22-compatibility.patch"
end
def self.build
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment