summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Malm <gmalm+github-chef-chef-2018@engineyard.com>2018-03-21 23:59:38 +0000
committerGordon Malm <gmalm+github-chef-chef-2018@engineyard.com>2018-03-21 23:59:38 +0000
commit68d5b2ea2f1c540307ce0e14387f2924aefe4950 (patch)
treeeb87df42ddf71572f513f65b75b2e4810bb388dc
parent8574e5de3642313cc0da098c5cd328fe4a3e22bd (diff)
downloadchef-68d5b2ea2f1c540307ce0e14387f2924aefe4950.tar.gz
[[:digit:]] is impromper here. Only ASCII is allowed in ebuild names.
Reference: https://www.gentoo.org/glep/glep-0031.html#id16 Signed-off-by: Gordon Malm <gmalm+github-chef-chef-2018@engineyard.com>
-rw-r--r--lib/chef/provider/package/portage.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/portage.rb b/lib/chef/provider/package/portage.rb
index d383ea79dd..a392a9285c 100644
--- a/lib/chef/provider/package/portage.rb
+++ b/lib/chef/provider/package/portage.rb
@@ -87,7 +87,7 @@ class Chef
end
pkginfo.stdout.chomp!
- if pkginfo.stdout =~ /-r[[:digit:]]+$/
+ if pkginfo.stdout =~ /-r\d+$/
# Latest/Best version of the package is a revision (-rX).
@candidate_version = pkginfo.stdout.split(/(?<=-)/).last(2).join
else