Hello community,

here is the log from the commit of package facter for openSUSE:Factory checked 
in at 2012-08-12 15:24:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/facter (Old)
 and      /work/SRC/openSUSE:Factory/.facter.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "facter", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/facter/facter.changes    2012-06-26 
15:18:44.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.facter.new/facter.changes       2012-08-12 
15:24:43.000000000 +0200
@@ -1,0 +2,16 @@
+Wed Aug  8 22:17:55 UTC 2012 - [email protected]
+
+- Updated to latest upstream 1.6.11
+  * Add build-requires of ruby-rdoc for manpage generation
+  * Selinux: Test for policyvers before reading it
+  * Return only one selinuxfs path as string from mounts
+  * Update version nos to match Facter development
+  * Modify facter spec to work with Ruby 1.9
+ 
+
+-------------------------------------------------------------------
+Tue Jul  3 18:47:23 UTC 2012 - [email protected]
+
+- Copy package from devel:openSUSE:Factory
+
+-------------------------------------------------------------------

Old:
----
  facter-1.6.10.tar.gz

New:
----
  facter-1.6.11.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ facter.spec ++++++
--- /var/tmp/diff_new_pack.H6gu24/_old  2012-08-12 15:24:47.000000000 +0200
+++ /var/tmp/diff_new_pack.H6gu24/_new  2012-08-12 15:24:47.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           facter
-Version:        1.6.10
+Version:        1.6.11
 Release:        0
 Summary:        A cross-platform Ruby library for retrieving facts from 
operating systems
 License:        Apache-2.0

++++++ facter-1.6.10.tar.gz -> facter-1.6.11.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/facter-1.6.10/CHANGELOG new/facter-1.6.11/CHANGELOG
--- old/facter-1.6.10/CHANGELOG 2012-06-14 02:06:32.000000000 +0200
+++ new/facter-1.6.11/CHANGELOG 2012-08-08 23:40:13.000000000 +0200
@@ -1,3 +1,12 @@
+1.6.11
+===
+f75e46e Add build-requires of ruby-rdoc for manpage generation
+e9e084f (Maint) Update CONTRIBUTING.md to match Puppet
+841b99a (#15687) Selinux: Test for policyvers before reading it
+10aa3aa (#15049) Return only one selinuxfs path as string from mounts
+f7f90e4 Update version nos to match Facter development
+ab87a2c Modify facter spec to work with Ruby 1.9
+
 1.6.10
 ===
 35067dc Bump Facter epoch to 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/facter-1.6.10/CONTRIBUTING.md 
new/facter-1.6.11/CONTRIBUTING.md
--- old/facter-1.6.10/CONTRIBUTING.md   2012-06-14 02:06:32.000000000 +0200
+++ new/facter-1.6.11/CONTRIBUTING.md   2012-08-08 23:40:13.000000000 +0200
@@ -1,88 +1,84 @@
-Checklist (and a short version for the impatient)
+Checklist/Outline (The short version)
 =================================================
 
-  * Commits:
-
-    - Make commits of logical units.
-
-    - Check for unnecessary whitespace with "git diff --check" before
-      committing.
-
-    - Commit using Unix line endings (check the settings around "crlf" in
-      git-config(1)).
-
-    - Do not check in commented out code or unneeded files.
-
-    - The first line of the commit message should be a short
-      description (50 characters is the soft limit, excluding ticket
-      number(s)), and should skip the full stop.
-
-    - If there is an associated Redmine ticket then the first line
-      should include the ticket number in the form "(#XXXX) Rest of
-      message".
-
-    - The body should provide a meaningful commit message, which:
-
-      - uses the imperative, present tense: "change", not "changed" or
-        "changes".
-
-      - includes motivation for the change, and contrasts its
-        implementation with the previous behavior.
-
-    - Make sure that you have tests for the bug you are fixing, or
-      feature you are adding.
-
-    - Make sure the test suite passes after your commit (rake spec unit).
-
-  * Submission:
-
-    * Pre-requisites:
-
-      - Make sure you have a [Redmine account](http://projects.puppetlabs.com)
-
-      - Sign the [Contributor License 
Agreement](https://projects.puppetlabs.com/contributor_licenses/sign)
-
-    * Preferred method:
-
-      - Fork the repository on GitHub.
-
-      - Push your changes to a topic branch in your fork of the
-        repository.
-
-      - Submit a pull request to the repository in the puppetlabs
-        organization.
-
-    * Alternate methods:
-
-      - Mail patches to puppet-dev mailing list using `rake mail_patches`,
-        or `git-format-patch(1)` & `git-send-email(1)`.
-
-      - Attach patches to Redmine ticket.
-
+  * Getting Started: 
+    - Make sure you have a [Redmine account](http://projects.puppetlabs.com)
+    - Submit a ticket for your issue, assuming one does not already exist. 
+    - Decide what to base your work off of 
+      * `1.6.x`: bug fixes only
+      * `2.x`: new features that are not breaking changes
+      * `master`: new features that are breaking changes 
+    
+  * Making Changes: 
+     - Make sure you have a [GitHub account](https://github.com/signup/free)
+     - Fork the repository on GitHub
+     - Make commits of logical units.
+     - Check for unnecessary whitespace with "git diff --check" before 
committing.
+     - Make sure your commit messages are in the proper format 
+     - Make sure you have added the necessary tests for your changes
+     - Run _all_ the tests to assure nothing else was accidentally broken 
+
+  * Submitting Changes: 
+     - Sign the [Contributor License 
Agreement](https://projects.puppetlabs.com/contributor_licenses/sign)
+     -  Push your changes to a topic branch in your fork of the repository.
+     -  Submit a pull request to the repository in the puppetlabs organization.
+     -  Update your Redmine ticket 
+   
 The long version
 ================
 
-  0.  Decide what to base your work on.
-
-      In general, you should always base your work on the oldest
-      branch that your change is relevant to.
+  0. Create a Redmine ticket for the change you'd like to make.
+     
+        It's very important that there be a Redmine ticket for the change 
+        you are making. Considering the number of contributions which are 
+        submitted, it is crucial that we know we can find the ticket on 
Redmine.
+       
+        Before making a ticket however, be sure that one does not already 
exist.
+        You can do this by searching Redmine or by trying a Google search 
which 
+        includes `sites:projects.puppetlabs.com` in addition to some of the 
keywords 
+        related to your issue. 
+       
+        If you do not find a ticket that that accurately describes the work 
+        you're going to be doing, go ahead and create one. But be sure to 
+        look for related tickets and add them to the 'related tickets' section.
+
+  1.  Decide what to base your work on.
+
+         In general, you should always base your work on the oldest 
+         branch that your change is relevant to, and it will be 
+         eventually merged up. Currently, branches will be merged up as 
+         follows: 
+           1.6.x => 2.x => master 
+       
+         Currently, this is how you should decide where to target your 
changes: 
+       
+         A bug fix should be based off the the earliest place where it is 
+               relevant. If it first appears in `1.6.x`, then it should be 
+               targeted here and eventually merged up to `2.x` and master. 
+               
+         New features which are _backwards compatible_ should be targeted 
+           at the next release, which currently is `2.x`. 
+       
+         New features that are _breaking changes_ should be targeted at 
+               `master`.
+
+      Part of deciding what to what your work should be based off of includes 
naming 
+         your topic branch to reflect this. Your branch name should have the 
following 
+         format: 
+                       
`ticket/target_branch/ticket_number_short_description_of_issuee` 
+       
+    For example, if you are fixing a bug relating to a hostname problem on aix,
+    which has Redmine ticket number 12345, then your branch should be named: 
+                       `ticket/2.x/12345_fix_hostname_on_aix` 
+                       
+         There is a good chance that if you submit a pull request _from_ 
master _to_ master, 
+         Puppet Labs developers will suspect that you're not sure about the 
process. This is 
+         why clear naming of branches and basing your work off the right place 
will be 
+         extremely helpful in ensuring that your submission is reviewed and 
merged. Often times
+         if your change is targeted at the wrong place, we will bounce it back 
to you and wait 
+         to review it until it has been retargeted. 
 
-      - A bug fix should be based on the current stable series. If the
-        bug is not present in the current stable release, then base it on
-        `master`.
-
-      - A new feature should be based on `master`.
-
-      - Security fixes should be based on the current maintenance series
-        (that is, the previous stable series).  If the security issue
-        was not present in the maintenance series, then it should be
-        based on the current stable series if it was introduced there,
-        or on `master` if it is not yet present in a stable release.
-
-      The current stable series is 2.7.x, and the current maintenance
-      series is 2.6.x.
-
-  1.  Make separate commits for logically separate changes.
+  2.  Make separate commits for logically separate changes.
 
       Please break your commits down into logically consistent units
       which include new or changed tests relevent to the rest of the
@@ -94,7 +90,7 @@
       If you're going to refactor a piece of code, please do so as a
       separate commit from your feature or bug fix changes.
 
-      We also really appreciate changes that include tests to make
+      It's crucial that your changes include tests to make
       sure the bug isn't re-introduced, and that the feature isn't
       accidentally broken.
 
@@ -108,14 +104,18 @@
       code are much more likely to be merged in with a minimum of
       bike-shedding or requested changes.  Ideally, the commit message
       would include information, and be in a form suitable for
-      inclusion in the release notes for the version of Puppet that
+      inclusion in the release notes for the version of Facter that
       includes them.
 
       Please also check that you are not introducing any trailing
       whitespaces or other "whitespace errors".  You can do this by
       running "git diff --check" on your changes before you commit.
 
-  2.  Sign the Contributor License Agreement
+      When writing commit messages, please be sure they meet 
+         [these 
standards](https://github.com/erlang/otp/wiki/Writing-good-commit-messages), 
and please include the ticket number in your 
+         short summary. It should look something like this: `(#12345) Fix this 
issue in Facter`
+
+  3.  Sign the Contributor License Agreement
 
       Before we can accept your changes, we do need a signed Puppet
       Labs Contributor License Agreement (CLA).
@@ -131,106 +131,46 @@
       If you have any questions about the CLA, please feel free to
       contact Puppet Labs via email at [email protected].
 
-  3.  Sending your patches
-
-      We accept multiple ways of submitting your changes for
-      inclusion.  They are listed below in order of preference.
+  4.  Sending your patches
 
-      Please keep in mind that any method that involves sending email
-      to the mailing list directly requires you to be subscribed to
-      the mailing list, and that your first post to the list will be
-      held in a moderation queue.
-
-      * GitHub Pull Requests
-
-        To submit your changes via a GitHub pull request, we _highly_
-        recommend that you have them on a topic branch, instead of
-        directly on "master" or one of the release, or RC branches.
-        It makes things much easier to keep track of, especially if
-        you decide to work on another thing before your first change
-        is merged in.
-
-        GitHub has some pretty good
-        [general documentation](http://help.github.com/) on using
-        their site.  They also have documentation on
-        [creating pull requests](http://help.github.com/send-pull-requests/).
-
-        In general, after pushing your topic branch up to your
-        repository on GitHub, you'll switch to the branch in the
-        GitHub UI and click "Pull Request" towards the top of the page
-        in order to open a pull request.
-
-        You'll want to make sure that you have the appropriate
-        destination branch in the repository under the puppetlabs
-        organization.  This should be the same branch that you based
-        your changes off of.
-
-      * Other pull requests
-
-        If you already have a publicly accessible version of the
-        repository hosted elsewhere, and don't wish to or cannot use
-        GitHub, you can submit your change by requesting that we pull
-        the changes from your repository by sending an email to the
-        puppet-dev Google Groups mailing list.
-
-        `git-request-pull(1)` provides a handy way to generate the text
-        for the email requesting that we pull your changes (and does
-        some helpful sanity checks in the process).
-
-      * Mailing patches to the mailing list
-
-        If neither of the previous methods works for you, then you can
-        also mail the patches inline to the puppet-dev Google Group
-        using either `rake mail_patches`, or by using
-        `git-format-patch(1)`, and `git-send-email(1)` directly.
-
-        `rake mail_patches` handles setting the appropriate flags to
-        `git-format-patch(1)` and `git-send-email(1)` for you, but
-        doesn't allow adding any commentary between the '---', and the
-        diffstat in the resulting email.  It also requires that you
-        have created your topic branch in the form
-        `<type>/<parent>/<name>`.
-
-        If you decide to use `git-format-patch(1)` and
-        `git-send-email(1)` directly, please be sure to use the
-        following flags for `git-format-patch(1)`: -C -M -s -n
-        --subject-prefix='PATCH/puppet'
-
-      * Attaching patches to Redmine
-
-        As a method of last resort you can also directly attach the
-        output of `git-format-patch(1)`, or `git-diff(1)` to a Redmine
-        ticket.
-
-        If you are generating the diff outside of Git, please be sure
-        to generate a unified diff.
-
-  4.  Update the related Redmine ticket.
-
-      If there's a Redmine ticket associated with the change you
-      submitted, then you should update the ticket to include the
-      location of your branch, and change the status to "In Topic
-      Branch Pending Merge", along with any other commentary you may
-      wish to make.
+      To submit your changes via a GitHub pull request, you must
+      have them on a topic branch, instead of directly on "master" 
+      or one of the release, or RC branches. It makes things much easier 
+      to keep track of, especially if you decide to work on another thing
+      before your first change is merged in.
+
+      GitHub has some pretty good
+      [general documentation](http://help.github.com/) on using
+      their site.  They also have documentation on
+      [creating pull requests](http://help.github.com/send-pull-requests/).
+
+      In general, after pushing your topic branch up to your
+      repository on GitHub, you'll switch to the branch in the
+      GitHub UI and click "Pull Request" towards the top of the page
+      in order to open a pull request.
+
+      You'll want to make sure that you have the appropriate
+      destination branch in the repository under the puppetlabs
+      organization.  This should be the same branch that you based
+      your changes off of.
+
+  5.  Update the related Redmine ticket.
+
+      You should update the Redmine ticket associated 
+      with the change you submitted to include the location of your branch
+      on the `branch` field of the ticket, and change the status to 
+      "In Topic Branch Pending Review", along with any other commentary 
+       you may wish to make.
 
 How to track the status of your change after it's been submitted
 ================================================================
 
-Shortly after opening a pull request on GitHub, there should be an
-automatic message sent to the puppet-dev Google Groups mailing list
-notifying people of this.  This notification is used to let the Puppet
+Shortly after opening a pull request, there should be an automatic 
+email sent via GitHub. This notification is used to let the Puppet
 development community know about your requested change to give them a
 chance to review, test, and comment on the change(s).
 
-If you submitted your change via manually sending a pull request or
-mailing the patches, then we keep track of these using
-[patchwork](https://patchwork.puppetlabs.com).  When code is merged
-into the project it is automatically removed from patchwork, and the
-Redmine ticket is manually updated with the commit SHA1.  In addition,
-the ticket status must be updated by the person who merges the topic
-branch to a status of "Merged - Pending Release"
-
-We do our best to comment on or merge submitted changes within a week.
+We do our best to comment on or merge submitted changes within a about week.
 However, if there hasn't been any commentary on the pull request or
 mailed patches, and it hasn't been merged in after a week, then feel
 free to ask for an update by replying on the mailing list to the
@@ -246,8 +186,6 @@
 
 * [Bug tracker (Redmine)](http://projects.puppetlabs.com)
 
-* [Patchwork](https://patchwork.puppetlabs.com)
-
 * [Contributor License 
Agreement](https://projects.puppetlabs.com/contributor_licenses/sign)
 
 * [General GitHub documentation](http://help.github.com/)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/facter-1.6.10/conf/redhat/facter.spec 
new/facter-1.6.11/conf/redhat/facter.spec
--- old/facter-1.6.10/conf/redhat/facter.spec   2012-06-14 02:06:32.000000000 
+0200
+++ new/facter-1.6.11/conf/redhat/facter.spec   2012-08-08 23:40:13.000000000 
+0200
@@ -2,9 +2,9 @@
 
 Summary: Ruby module for collecting simple facts about a host operating system
 Name: facter
-Version: 1.6.10
+Version: 1.6.11
 Release: 1%{?dist}
-#Release: 0.1rc1.2%{?dist}
+#Release: 0.1rc1%{?dist}
 Epoch: 1
 License: Apache 2.0
 Group: System Environment/Base
@@ -23,8 +23,9 @@
 Requires: dmidecode
 Requires: pciutils
 %endif
-Requires: ruby(abi) = 1.8
+Requires: ruby(abi) >= 1.8
 BuildRequires: ruby >= 1.8.5
+BuildRequires: ruby-rdoc
 
 %description
 Ruby module for collecting simple facts about a host Operating
@@ -39,7 +40,7 @@
 
 %install
 rm -rf %{buildroot}
-ruby install.rb --destdir=%{buildroot} --quick --no-rdoc
+ruby install.rb --destdir=%{buildroot} --quick
 
 %clean
 rm -rf %{buildroot}
@@ -50,10 +51,20 @@
 %{_bindir}/facter
 %{ruby_sitelibdir}/facter.rb
 %{ruby_sitelibdir}/facter
+%{_mandir}/man8/facter.8.gz
 %doc CHANGELOG INSTALL LICENSE README.md
 
 
 %changelog
+* Wed Aug 08 2012 Moses Mendoza <[email protected]> - 1.6.11-1
+- Update for 1.6.11
+
+* Wed Aug 01 2012 Moses Mendoza <[email protected]> - 1.6.11-0.1rc1
+- Update for 1.6.11rc1
+
+* Sat Jul 07 2012 Michael Stahnke <[email protected]> - 1.6.10-2
+- Attempt to build fro Ruby 1.9.3
+
 * Wed Jun 13 2012 Moses Mendoza <[email protected]> - 1.6.10-1
 - Update for 1.6.10
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/facter-1.6.10/lib/facter/selinux.rb 
new/facter-1.6.11/lib/facter/selinux.rb
--- old/facter-1.6.10/lib/facter/selinux.rb     2012-06-14 02:06:32.000000000 
+0200
+++ new/facter-1.6.11/lib/facter/selinux.rb     2012-08-08 23:40:13.000000000 
+0200
@@ -15,15 +15,16 @@
 # This supports the fact that the selinux mount point is not always in the
 # same location -- the selinux mount point is operating system specific.
 def selinux_mount_point
-  if FileTest.exists?('/proc/self/mountinfo')
-    File.open('/proc/self/mountinfo') do |f|
+  path = "/selinux"
+  if FileTest.exists?('/proc/self/mounts')
+    File.open('/proc/self/mounts') do |f|
       f.grep(/selinuxfs/) do |line|
-        line.split[4]
+        path = line.split[1]
+        break
       end
     end
-  else
-    "/selinux"
   end
+  path
 end
 
 Facter.add("selinux") do
@@ -56,7 +57,11 @@
 Facter.add("selinux_policyversion") do
   confine :selinux => :true
   setcode do
-    File.read("#{selinux_mount_point}/policyvers")
+    result = 'unknown'
+    if FileTest.exists?("#{selinux_mount_point}/policyvers")
+      result = File.read("#{selinux_mount_point}/policyvers").chomp
+    end
+    result
   end
 end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/facter-1.6.10/lib/facter.rb 
new/facter-1.6.11/lib/facter.rb
--- old/facter-1.6.10/lib/facter.rb     2012-06-14 02:06:32.000000000 +0200
+++ new/facter-1.6.11/lib/facter.rb     2012-08-08 23:40:13.000000000 +0200
@@ -25,7 +25,7 @@
   include Comparable
   include Enumerable
 
-  FACTERVERSION = '1.6.10'
+  FACTERVERSION = '1.6.11'
   # = Facter
   # Functions as a hash of 'facts' you might care about about your
   # system, such as mac address, IP address, Video card, etc.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/facter-1.6.10/spec/unit/selinux_spec.rb 
new/facter-1.6.11/spec/unit/selinux_spec.rb
--- old/facter-1.6.10/spec/unit/selinux_spec.rb 2012-06-14 02:06:32.000000000 
+0200
+++ new/facter-1.6.11/spec/unit/selinux_spec.rb 2012-08-08 23:40:13.000000000 
+0200
@@ -9,17 +9,58 @@
     Facter.clear
   end
 
-  it "should return true if SELinux enabled" do
-    Facter.fact(:kernel).stubs(:value).returns("Linux")
+  describe "should detect if SELinux is enabled" do
+    it "and return true with default /selinux" do
+      Facter.fact(:kernel).stubs(:value).returns("Linux")
 
-    FileTest.stubs(:exists?).returns false
-    File.stubs(:read).with("/proc/self/attr/current").returns("notkernel")
+      FileTest.stubs(:exists?).returns false
+      File.stubs(:read).with("/proc/self/attr/current").returns("notkernel")
 
-    FileTest.expects(:exists?).with("/selinux/enforce").returns true
-    FileTest.expects(:exists?).with("/proc/self/attr/current").returns true
-    File.expects(:read).with("/proc/self/attr/current").returns("kernel")
+      FileTest.expects(:exists?).with("/selinux/enforce").returns true
+      FileTest.expects(:exists?).with("/proc/self/attr/current").returns true
+      File.expects(:read).with("/proc/self/attr/current").returns("kernel")
+
+      Facter.fact(:selinux).value.should == "true"
+    end
+
+    it "and return true with selinuxfs path from /proc" do
+      Facter.fact(:kernel).stubs(:value).returns("Linux")
+
+      mounts = mock()
+      lines = [ "selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0" ]
+      mounts.expects(:grep).multiple_yields(*lines)
+
+      FileTest.expects(:exists?).with("/proc/self/mounts").returns true
+      File.expects(:open).with("/proc/self/mounts").yields(mounts)
+
+      FileTest.expects(:exists?).with("/sys/fs/selinux/enforce").returns true
+
+      FileTest.expects(:exists?).with("/proc/self/attr/current").returns true
+      File.expects(:read).with("/proc/self/attr/current").returns("kernel")
+
+      Facter.fact(:selinux).value.should == "true"
+    end
+
+    it "and return true with multiple selinuxfs mounts from /proc" do
+      Facter.fact(:kernel).stubs(:value).returns("Linux")
 
-    Facter.fact(:selinux).value.should == "true"
+      mounts = mock()
+      lines = [
+        "selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0",
+        "selinuxfs /var/tmp/imgcreate-R2wmE6/install_root/sys/fs/selinux 
selinuxfs rw,relatime 0 0",
+      ]
+      mounts.expects(:grep).multiple_yields(*lines)
+
+      FileTest.expects(:exists?).with("/proc/self/mounts").returns true
+      File.expects(:open).with("/proc/self/mounts").yields(mounts)
+
+      FileTest.expects(:exists?).with("/sys/fs/selinux/enforce").returns true
+
+      FileTest.expects(:exists?).with("/proc/self/attr/current").returns true
+      File.expects(:read).with("/proc/self/attr/current").returns("kernel")
+
+      Facter.fact(:selinux).value.should == "true"
+    end
   end
 
   it "should return true if SELinux policy enabled" do
@@ -36,15 +77,22 @@
 
   it "should return an SELinux policy version" do
     Facter.fact(:selinux).stubs(:value).returns("true")
-    FileTest.stubs(:exists?).with("/proc/self/mountinfo").returns false
-
-    File.stubs(:read).with("/selinux/policyvers").returns("")
+    FileTest.stubs(:exists?).with("/proc/self/mounts").returns false
 
     File.expects(:read).with("/selinux/policyvers").returns("1")
+    FileTest.expects(:exists?).with("/selinux/policyvers").returns true
 
     Facter.fact(:selinux_policyversion).value.should == "1"
   end
 
+  it "it should return 'unknown' SELinux policy version if /selinux/policyvers 
doesn't exist" do
+    Facter.fact(:selinux).stubs(:value).returns("true")
+    FileTest.expects(:exists?).with("/proc/self/mounts").returns false
+    FileTest.expects(:exists?).with("/selinux/policyvers").returns false
+
+    Facter.fact(:selinux_policyversion).value.should == "unknown"
+  end
+
   it "should return the SELinux current mode" do
     Facter.fact(:selinux).stubs(:value).returns("true")
 

++++++ facter.1 ++++++
--- /var/tmp/diff_new_pack.H6gu24/_old  2012-08-12 15:24:47.000000000 +0200
+++ /var/tmp/diff_new_pack.H6gu24/_new  2012-08-12 15:24:47.000000000 +0200
@@ -1,6 +1,6 @@
-.TH FACTER "1" "September 2011" "facter 1.6.0" "User Commands"
+.TH FACTER "1" "September 2011" "" "User Commands"
 .SH NAME
-facter \- manual page for facter 1.6.0
+facter \- manual page for facter 
 .SH SYNOPSYS
 Collect and display facts about the system.
 .SH USAGE

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to