[Title] Added more information for opensuse OS
authordonghee yang <donghee.yang@samsung.com>
Fri, 31 Aug 2012 08:43:27 +0000 (17:43 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Fri, 31 Aug 2012 08:43:27 +0000 (17:43 +0900)
package/pkginfo.manifest
src/common/utils.rb

index f85a7c250ed0bfb777d97e3fb14d83cde3ccc11c..1aeb7b9d4177325c2831159f1369c2ca7c6240e4 100644 (file)
@@ -1,5 +1,5 @@
 Source : dibs
-Version :0.99.22
+Version :0.99.23
 Maintainer : taejun ha<taejun.ha@samsung.com>, jiil hyoun <jiil.hyoun@samsung.com>, donghyuk yang <donghyouk.yang@samsung.com>, donghee yang <donghee.yang@samsung.com>, sungmin kim <dev.sungmin.kim@samsung.com
 
 Package : dibs
index 2da5f9c305970b08515ba0f3c8842df3014e37ce..8ee5a88fecb5865f1f690c43180f5390535f19f1 100644 (file)
@@ -444,6 +444,7 @@ class Utils
        # check if the os is unix-like
        def Utils.is_unix_like_os(os_name)
                if os_name.start_with? "ubuntu-" or 
+                       os_name.start_with? "opensuse-" or 
                        os_name.start_with?"macos-" then
                        return true
                else
@@ -454,7 +455,8 @@ class Utils
 
        # check if the os is linux-like
        def Utils.is_linux_like_os(os_name)
-               if os_name.start_with? "ubuntu-" then
+               if os_name.start_with? "ubuntu-" or
+                       os_name.start_with? "opensuse-" then
                        return true
                else
                        return false
@@ -473,7 +475,7 @@ class Utils
 
        
        def Utils.get_os_category(os_name)
-               if os_name.start_with? "ubuntu-" then
+               if os_name.start_with? "ubuntu-" or os_name.start_with? "opensuse-" then
                        return "linux"
                elsif os_name.start_with?"macos-" then
                        return "macos"