Package: facter
Version: 1.3.8-1
Severity: normal
Tags: patch

Debianversion does not support debian ports (e.g. gnu-kfreebsd and nexenta).
See attached patch for fix.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.24-1-amd64
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)

Versions of packages facter depends on:
ii  bind9-host [host]         1:9.3.4-2etch1 Version of 'host' bundled with BIN
ii  net-tools                 1.60-17        The NET-3 networking toolkit
ii  ruby                      1.8.2-1        An interpreter of object-oriented 

facter recommends no packages.

-- no debconf information
diff -ru facter-1.3.8.orig/lib/facter/debianversion.rb 
facter-1.3.8/lib/facter/debianversion.rb
--- facter-1.3.8.orig/lib/facter/debianversion.rb       2008-04-15 
07:00:30.000000000 -0400
+++ facter-1.3.8/lib/facter/debianversion.rb    2008-04-15 07:04:20.000000000 
-0400
@@ -13,7 +13,7 @@
        }
 end
 
-if Facter.operatingsystem == "Debian"
+if FileTest.exists?("/etc/debian_version")
        Thread::exclusive do
                File.readlines("/etc/debian_version").each do |l|
                        Facter.add("Debianversion") do

Reply via email to