Project

General

Profile

0001-Hardcode-a-version-number-for-Debian-s-testing-and-u.patch

patch fixing the issue - Nicolas Dandrimont, 12/24/2012 09:09 AM

View differences:

app/models/facts_importer.rb
19 19
        args = { :name => os_name, :major => "1", :minor => "0" }
20 20
        Operatingsystem.where(args).first || Operatingsystem.create!(args)
21 21
      elsif orel.present?
22
        if os_name == "Debian" and orel[/testing|unstable/i]
23
          case facts[:lsbdistcodename]
24
            when /wheezy/i
25
              orel = "7"
26
            when /jessie/i
27
              orel = "8"
28
            when /sid/i
29
              orel = "99"
30
          end
31
        end
22 32
        major, minor = orel.split(".")
23 33
        minor        ||= ""
24 34
        args = { :name => os_name, :major => major, :minor => minor }
25
-