[Title] Added host OSs: "opensuse-32", "opensuse-64"
authordonghee yang <donghee.yang@samsung.com>
Fri, 31 Aug 2012 07:37:49 +0000 (16:37 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Fri, 31 Aug 2012 07:37:49 +0000 (16:37 +0900)
src/common/utils.rb

index bf7155eb9360172c6df0cc395e7bd326683ec036..2da5f9c305970b08515ba0f3c8842df3014e37ce 100644 (file)
@@ -42,7 +42,8 @@ class Utils
                                elsif File.exist? "/etc/redhat-release" then
                                        os = "redhat-unknown"
                                elsif File.exist? "/etc/SuSE-release" then
-                                       os = "opensuse-unknown"
+                                       arch = (`uname -i`.strip == "x86_64") ? "64" : "32"
+                                       os = "opensuse-#{arch}"
                                elsif File.exist? "/etc/mandrake-release" then
                                        os = "mandrake-unknown"
                                end
@@ -72,7 +73,7 @@ class Utils
 
 
        def Utils.get_all_OSs()
-               return ["ubuntu-32","ubuntu-64","windows-32","windows-64","macos-64"]   
+               return ["ubuntu-32","ubuntu-64","windows-32","windows-64","macos-64","opensuse-32", "opensuse-64"]      
        end