mirror of
https://github.com/jordansissel/fpm
synced 2025-08-24 03:14:30 +02:00
Identified in #1840/#1841, `lintian` will error due to invalid control.tar file, as shown below. This test ensures that `lintian` will not crash. There were two options I found: First, to run `lintian` and, when it crashes, it exits code 2. Second, to run `lintian` with a single always-successful check. I chose the second option because this allows me to rely on success/failure (exit code 0 vs non-zero) in the event that `lintian` ever changes its exit code, or that the crash exit code changes across older versions of Debian. ``` % lintian example_1.0_amd64.deb dpkg-deb: error: archive '/home/jls/projects/fpm/example_1.0_amd64.deb' uses unknown compression for member 'control.tar.bz2', giving up /bin/tar: This does not look like a tar archive /bin/tar: *control: Not found in archive /bin/tar: Exiting with failure status due to previous errors Skipping example_1.0_amd64.deb: could not read control data in /home/jls/projects/fpm/example_1.0_amd64.deb: at /usr/share/perl5/Lintian/ProcessablePool.pm line 93. ``` |
||
---|---|---|
.. | ||
acceptance/puppet/manifests | ||
conversion | ||
fixtures | ||
fpm | ||
spec_setup.rb |