bsdiff: fix/improve urls
parent
915e8b0ca4
commit
f97da4bb84
|
@ -1,15 +1,13 @@
|
|||
class Bsdiff < Formula
|
||||
desc "Generate and apply patches to binary files"
|
||||
homepage "https://www.daemonology.net/bsdiff"
|
||||
url "https://www.daemonology.net/bsdiff/bsdiff-4.3.tar.gz"
|
||||
# Returns 403 (forbidden) for the canonical download URL:
|
||||
# "https://www.daemonology.net/bsdiff/bsdiff-4.3.tar.gz"
|
||||
url "https://deb.debian.org/debian/pool/main/b/bsdiff/bsdiff_4.3.orig.tar.gz"
|
||||
sha256 "18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48"
|
||||
|
||||
# We use the HTTP URL for the homepage here because the site redirects this
|
||||
# from HTTPS to HTTP, which makes open-uri give a "redirection forbidden"
|
||||
# error. The site supports HTTPS, it just doesn't want to use it for the
|
||||
# bsdiff page, for whatever reason.
|
||||
livecheck do
|
||||
url "http://www.daemonology.net/bsdiff"
|
||||
url :homepage
|
||||
regex(/href=.*?bsdiff[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue