Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dupseek: fix test and undeprecate #66509

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Formula/dupseek.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Dupseek < Formula
homepage "http://www.beautylabs.net/software/dupseek.html"
url "http://www.beautylabs.net/software/dupseek-1.3.tgz"
sha256 "c046118160e4757c2f8377af17df2202d6b9f2001416bfaeb9cd29a19f075d93"
license "GPL-2.0-only"

bottle do
cellar :any_skip_relocation
Expand All @@ -15,8 +16,6 @@ class Dupseek < Formula
sha256 "ff34b6c5ac5fcf84bf532008fb5fd2b2cfd9db7736854efb09e451e54b370c37" => :mavericks
end

disable! date: "2020-12-08", because: :unmaintained

def install
bin.install "dupseek"
doc.install %w[changelog.txt doc.txt copyright credits.txt]
Expand All @@ -27,7 +26,7 @@ def install
touch "folder/file1"
assert_equal "", shell_output("#{bin}/dupseek -b report -f de folder").chomp
touch "folder/file2"
assert_equal "folder\\/file2", shell_output("#{bin}/dupseek -b report -f de folder").chomp
assert_equal "folder\\/file1\nfolder\\/file2", shell_output("#{bin}/dupseek -b report -f e folder").chomp
assert_match %r{^folder\\/file[12]$}, shell_output("#{bin}/dupseek -b report -f de folder").chomp
assert_equal "folder\\/file1\nfolder\\/file2", shell_output("#{bin}/dupseek -b report -f e folder | sort").chomp
end
end