[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 3a39dd8353b6308cf49522990104cc63e55d7cda
Todd Zullinger
tmz at pobox.com
Fri Jan 29 17:22:15 UTC 2010
The following commit has been merged in the upstream branch:
commit 82d97e25f14f0b92187b6ac695119ac5076c0810
Author: Todd Zullinger <tmz at pobox.com>
Date: Mon Mar 9 02:12:32 2009 -0400
Fix operatingsystemrelease on Red Hat based distros
This allows operatingsystemrelease to properly determine the release for
various Red Hat based distros, including the point portion of the
release.
diff --git a/lib/facter/operatingsystemrelease.rb b/lib/facter/operatingsystemrelease.rb
index 2f76817..18199bd 100644
--- a/lib/facter/operatingsystemrelease.rb
+++ b/lib/facter/operatingsystemrelease.rb
@@ -15,7 +15,7 @@ Facter.add(:operatingsystemrelease) do
line = f.readline.chomp
if line =~ /\(Rawhide\)$/
"Rawhide"
- elsif line =~ /release (\d+)/
+ elsif line =~ /release (\d[\d.]*)/
$1
end
end
--
Packaging of Facter for debian
More information about the Pkg-puppet-devel
mailing list