1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-24 03:14:30 +02:00
fpm/spec
Jordan Sissel c4c0b32cfc Add test case for #1840 (deb compression creating invalid control.tar files)
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.
```
2021-11-02 21:52:58 -07:00
..
acceptance/puppet/manifests Start work for acceptance tests. 2016-05-23 11:28:51 -07:00
conversion Allow versions in Provides field for Debian packages 2021-07-06 14:25:06 -07:00
fixtures Add tests for python PEP0508 tags 2018-04-14 19:55:08 -07:00
fpm Add test case for #1840 (deb compression creating invalid control.tar files) 2021-11-02 21:52:58 -07:00
spec_setup.rb Added ruby 2.5 to the build matrix (#1532) 2018-10-15 21:14:04 -07:00