Remove need for wget

This commit is contained in:
saltedcoffii
2021-03-23 12:42:28 -04:00
parent 257d1a65ee
commit 437b0b3326
5 changed files with 5 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ class Iniparser < Package
def self.patch
# Fix buffer overflow vulnerabilities
system 'wget', 'https://github.com/ndevilla/iniparser/commit/a249509544972d60f5077bfde554af480bd82594.patch'
system 'curl -#LO https://github.com/ndevilla/iniparser/commit/a249509544972d60f5077bfde554af480bd82594.patch'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('a249509544972d60f5077bfde554af480bd82594.patch') ) == '1b1fe5d2faf6eb5bed51b80b046d4699c09b14b3e5e5277aed790a8741fcad8b'
system 'patch', '-Np1', '-i', 'a249509544972d60f5077bfde554af480bd82594.patch'
# Fix libdir