summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-16 18:07:36 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-17 13:58:07 -0800
commit9b99bf076324659d70055226713495c67dbeaa8d (patch)
treeb356acc0035cbdae081379f5373d38880145dd9f
parentaf9b718928a063baac2fc559a3d9b98c25327e01 (diff)
downloadchef-9b99bf076324659d70055226713495c67dbeaa8d.tar.gz
use scalar pkg not array package
the names in this class are a bit confusing and need to be cleaned up
-rw-r--r--lib/chef/provider/package/apt.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/apt.rb b/lib/chef/provider/package/apt.rb
index c6fb47b5d5..584d1cf75a 100644
--- a/lib/chef/provider/package/apt.rb
+++ b/lib/chef/provider/package/apt.rb
@@ -81,7 +81,7 @@ class Chef
if candidate_version == '(none)'
# This may not be an appropriate assumption, but it shouldn't break anything that already worked -- btm
virtual = true
- showpkg = shell_out!("apt-cache showpkg #{package}", {:timeout => 900}).stdout
+ showpkg = shell_out!("apt-cache showpkg #{pkg}", {:timeout => 900}).stdout
providers = Hash.new
showpkg.rpartition(/Reverse Provides: ?#{$/}/)[2].each_line do |line|
provider, version = line.split