[DRE-commits] [librarian-puppet] 112/153: Strip the puppet version, 4.0.0 ends with new line

Stig Sandbeck Mathisen ssm at debian.org
Wed Jun 1 20:30:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository librarian-puppet.

commit 2cf75b028f5573bb0ce414bbf30ef8c91ffaa68f
Author: Carlos Sanchez <carlos at apache.org>
Date:   Sat May 9 17:27:21 2015 +0200

    Strip the puppet version, 4.0.0 ends with new line
---
 lib/librarian/puppet.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librarian/puppet.rb b/lib/librarian/puppet.rb
index 3c0bc54..03a2e1f 100644
--- a/lib/librarian/puppet.rb
+++ b/lib/librarian/puppet.rb
@@ -16,7 +16,7 @@ module Librarian
       return @@puppet_version unless @@puppet_version.nil?
 
       begin
-        @@puppet_version = Librarian::Posix.run!(%W{puppet --version})
+        @@puppet_version = Librarian::Posix.run!(%W{puppet --version}).strip
       rescue Librarian::Posix::CommandFailure => error
         msg = "Unable to load puppet. Please install it using native packages for your platform (eg .deb, .rpm, .dmg, etc)."
         msg += "\npuppet --version returned #{error.status}"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git



More information about the Pkg-ruby-extras-commits mailing list