inspec/lib
Adam Leff 367d42fb3a Properly handle held packages on dpkg-flavored OS (#2087)
* check the proper field for dpkg installation state fixes #2006

Signed-off-by: Mathieu Sauve-Frankel <msf@kisoku.net>

* Properly handle held packages on dpkg-flavored OS

InSpec was looking at the wrong field in `dpkg -s` output to determine
whether a package was installed or not. An installed, held package was
incorrectly reported as uninstalled.

This adds the proper unit tests and also adds a `be_held` matcher.

Thanks to @kisoku for the initial work in #2007.

Signed-off-by: Adam Leff <adam@leff.co>
2017-08-18 17:29:23 +02:00
..
bundles Remove any "All Rights Reserved" references (#1969) 2017-06-28 04:14:19 -07:00
fetchers Don't send HTTP headers that have nil values (#1948) 2017-06-21 19:09:13 -05:00
inspec Bump version to 1.33.10 by Chef Expeditor 2017-08-17 14:48:51 +00:00
matchers New 'be_in' matcher for matching against values in a list (#2022) 2017-08-07 16:05:22 +02:00
resources Properly handle held packages on dpkg-flavored OS (#2087) 2017-08-18 17:29:23 +02:00
source_readers Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00
utils Fix issue when xinetd.conf does not end in newline (#2040) 2017-08-02 15:29:26 +02:00
inspec.rb Remove any "All Rights Reserved" references (#1969) 2017-06-28 04:14:19 -07:00