diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-18 19:12:46 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-02-19 08:06:55 -0800 |
commit | 32bc9839a8a7c24c6250744875238683e57ac870 (patch) | |
tree | 2c5f7272ce094b125a2a6deae2e72dac9e95d96f /lib | |
parent | 44ecf5c00960fb20dae43425929f2dfedf7a067c (diff) | |
download | chef-32bc9839a8a7c24c6250744875238683e57ac870.tar.gz |
fix dpkg regression
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/package/dpkg.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/provider/package/dpkg.rb b/lib/chef/provider/package/dpkg.rb index 1500aa9a7e..11691a2479 100644 --- a/lib/chef/provider/package/dpkg.rb +++ b/lib/chef/provider/package/dpkg.rb @@ -61,10 +61,12 @@ class Chef if @source_exists # Get information from the package if supplied Chef::Log.debug("#{@new_resource} checking dpkg status") + shell_out("dpkg-deb -W #{@new_resource.source}").stdout.each_line do |line| if pkginfo = DPKG_INFO.match(line) @current_resource.package_name(pkginfo[1]) @new_resource.version(pkginfo[2]) + @candidate_version = pkginfo[2] end end else |