Skip to content

Commit ca09a4c

Browse files
authored
Merge pull request #225104 from Homebrew/curl-wcurl
curl, wcurl: add `conflicts_with`
2 parents dc75b6a + 9ffde10 commit ca09a4c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Formula/c/curl.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class Curl < Formula
6262
depends_on "libidn2"
6363
end
6464

65+
conflicts_with "wcurl", because: "both install `wcurl` binary"
66+
6567
def install
6668
tag_name = "curl-#{version.to_s.tr(".", "_")}"
6769
if build.stable? && stable.mirrors.grep(/github\.com/).first.exclude?(tag_name)

Formula/w/wcurl.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class Wcurl < Formula
1212

1313
depends_on "curl"
1414

15+
conflicts_with "curl", because: "both install `wcurl` binary"
16+
1517
def install
1618
inreplace "wcurl", "CMD=\"curl \"", "CMD=\"#{Formula["curl"].opt_bin}/curl\""
1719
bin.install "wcurl"

0 commit comments

Comments
 (0)