lib/chef/provider/package/apt.rb in chef-0.10.4.rc.2 vs lib/chef/provider/package/apt.rb in chef-0.10.4.rc.3

- old
+ new

@@ -49,11 +49,13 @@ if installed @current_resource.version($1) else @current_resource.version(nil) end - when /Depends: ([^\s]*) / + # Grab the first package in the dependency list to resolve case where a virtual package is provided by more than one package + when /Depends: ([\w\d\-\.]*)/ depends = $1 + # Check to see if this is a virtual package when /Provided by: ([\w\d\-\.]*)/ next if installed virtual_provider = $1 virtual_provider = depends if depends Chef::Log.debug("Virtual package provided by #{virtual_provider}")