[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, squeeze-1.5.7, updated. debian/1.5.7-1-29-g115f872

Micah Anderson micah at riseup.net
Thu Dec 23 16:45:07 UTC 2010


The following commit has been merged in the squeeze-1.5.7 branch:
commit bf687c5a5a5b7e9e249e988b90eba5294af74c05
Author: Rein Henrichs <rein at puppetlabs.com>
Date:   Fri Aug 6 12:13:09 2010 -0700

    [#4156] Applying patch by Kai
    
    Patch from the ticket[1] checks for /proc/vz instead of /proc/vz/vzinfo.
    NOTE that this causes a spec failure since the spec was not changed to
    match.
    
    [1] http://projects.reductivelabs.com/issues/4156
    
    Signed-off-by: Rein Henrichs <rein at puppetlabs.com>

diff --git a/lib/facter/util/virtual.rb b/lib/facter/util/virtual.rb
index 0c3fb73..80439f3 100644
--- a/lib/facter/util/virtual.rb
+++ b/lib/facter/util/virtual.rb
@@ -1,6 +1,6 @@
 module Facter::Util::Virtual
     def self.openvz?
-        FileTest.exists?("/proc/vz/veinfo")
+        FileTest.directory?("/proc/vz")
     end
 
     def self.openvz_type

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list