Skip to content

Commit 030456a

Browse files
Ezra ZygmuntowiczOpscode, Inc.
authored andcommitted
fixup portage provider to be more robust about package names
Signed-off-by: Opscode, Inc. <oss@opscode.com>
1 parent 06bffcf commit 030456a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chef/lib/chef/provider/package/portage.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def parse_emerge(package, txt)
5656
if line =~ /\*(.*)/
5757
pkg = $1.strip
5858
end
59-
if pkg == package or pkg.split('/').last == package
59+
if (pkg == package) || (pkg.split('/').last == package rescue false)
6060
if line =~ /Latest version available: (.*)/
6161
available = $1
6262
elsif line =~ /Latest version installed: (.*)/

0 commit comments

Comments
 (0)