Issue #7471 has been reported by Dan Carley.
----------------------------------------
Bug #7471: Unescaped regex in Package agent
https://projects.puppetlabs.com/issues/7471
Author: Dan Carley
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Keywords:
Branch:
Affected mCollective version:
The Package plugin in puppetlabs/mcollective-plugins raises the following to
stdout when mcollectived is started in the foreground:
<pre>
/usr/libexec/mcollective/mcollective/agent/package.rb:78: warning: regexp has
`]' without escape
</pre>
Patch:
<pre>
diff --git a/agent/package/puppet-package.rb b/agent/package/puppet-package.rb
index 832ef6c..aa8c47b 100644
--- a/agent/package/puppet-package.rb
+++ b/agent/package/puppet-package.rb
@@ -75,7 +75,7 @@ module MCollective
next unless line =~ /^Inst/
# Inst emacs23 [23.1+1-4ubuntu7] (23.1+1-4ubuntu7.1
Ubuntu:10.04/lucid-updates) []
- if line =~ /Inst (.+?) \[.+?] \((.+?)\s(.+?)\)/
+ if line =~ /Inst (.+?) \[.+?\] \((.+?)\s(.+?)\)/
reply[:outdated_packages] << {:package =>
$1.strip,
:version =>
$2.strip,
:repo =>
$3.strip}
</pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.