From 49244b84aec0529a59c4fd51077e9af437b9144b Mon Sep 17 00:00:00 2001 From: donghee yang Date: Fri, 31 Aug 2012 16:37:49 +0900 Subject: [PATCH] [Title] Added host OSs: "opensuse-32", "opensuse-64" --- src/common/utils.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.34.1