From: donghee yang Date: Fri, 31 Aug 2012 07:37:49 +0000 (+0900) Subject: [Title] Added host OSs: "opensuse-32", "opensuse-64" X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49244b84aec0529a59c4fd51077e9af437b9144b;p=sdk%2Ftools%2Fsdk-build.git [Title] Added host OSs: "opensuse-32", "opensuse-64" --- diff --git a/src/common/utils.rb b/src/common/utils.rb index bf7155e..2da5f9c 100644 --- a/src/common/utils.rb +++ b/src/common/utils.rb @@ -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