Skip to content

Commit 3546567

Browse files
committed
wumpus: update livecheck
The existing `livecheck` block for `wumpus` only works intermittently because the upstream server for the catb.org homepage can take longer than the ten-second livecheck timeout. This updates the `livecheck` block to check the Git tags from the `head` repository as a workaround.
1 parent 09e7563 commit 3546567

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Formula/w/wumpus.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ class Wumpus < Formula
55
sha256 "aa059e163b4f516580b83931ae29fbd5796302e854da283b85cc7fc887677d7c"
66
license "BSD-2-Clause"
77

8+
# The homepage links to the `stable` tarball but it can take longer than the
9+
# ten second livecheck timeout, so we check the Git tags as a workaround.
810
livecheck do
9-
url :homepage
10-
regex(/href=.*?wumpus[._-]v?(\d+(?:\.\d+)+)\.t/i)
11+
url :head
12+
regex(/^v?(\d+(?:\.\d+)+)$/i)
1113
end
1214

1315
bottle do
@@ -21,6 +23,11 @@ class Wumpus < Formula
2123
sha256 cellar: :any_skip_relocation, x86_64_linux: "63f9a87dd8a82fc0bf2969cedfca5dd336e0e3575d6792bf3d8e19e6f3506332"
2224
end
2325

26+
head do
27+
url "https://gitlab.com/esr/wumpus.git", branch: "master"
28+
depends_on "asciidoctor" => :build
29+
end
30+
2431
# checksum got changed and no response from upstream, https://gitlab.com/esr/wumpus/-/issues/2
2532
deprecate! date: "2025-09-12", because: :does_not_build
2633
disable! date: "2026-09-12", because: :does_not_build

0 commit comments

Comments
 (0)