8000 Support newer version of lintian in the test suite. by jordansissel · Pull Request #1939 · jordansissel/fpm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support newer version of lintian in the test suite. #1939

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

Merged
merged 1 commit into from
Oct 17, 2022
Merged
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
8 changes: 7 additions & 1 deletion spec/fpm/package/deb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,13 @@ def dpkg_field(field)
# for broken symlinks. Since this package has no files, this check
# should always succeed. It would fail if fpm generated any invalid
# packages, such as ones with a bzip2-compressed control.tar file (#1840)
insist { system("lintian", "-C", "symlinks", target) } == true
#
# Note: At some point, Debian renamed the "symlinks" check to "files/symbolic-links/broken"
# In order to support both newer and older Debian derivatives, the test suite will try both checks,
# and if both fail, we should know something is wrong with the package.
insist {
system("lintian", "-C", "symlinks", target) || system("lintian", "-C", "files/symbolic-links/broken", target)
} == true
end
end
end
Expand Down
0