From 4d43957fac6c4d01e319c609bd6600f8f94aea91 Mon Sep 17 00:00:00 2001 From: "yongsung1.kim" Date: Wed, 13 Nov 2013 15:31:16 +0900 Subject: [PATCH] INST:Fixed a bug on checking ubuntu os name. Installer stub cannot check os name exactly. So, add some cases for solving this problem. Change-Id: Ibc07e1387a4791dd9d45868d8d2049caeeb5c2f7 Signed-off-by: yongsung1.kim --- os_stubs/linux/installer_stub | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/os_stubs/linux/installer_stub b/os_stubs/linux/installer_stub index 15451ed..7b86891 100755 --- a/os_stubs/linux/installer_stub +++ b/os_stubs/linux/installer_stub @@ -63,7 +63,10 @@ MYTIMESTAMP=`date +"%Y%m%d%H%M%S"` OUT_PATH="/tmp/tizensdk_${MYTIMESTAMP}" # list for pre installation check. Write including 'space' -if [ "ubuntu" = "${OS_NAME}" ] ; then +if [ "Ubuntu" = "${OS_NAME}" ] ; then + OS_NAME="ubuntu" +fi +if [ "ubuntu" = "${OS_NAME}" ] || [ "Ubuntu" = "${OS_NAME}" ] ; then INSTALLATION_CHECK="procps gettext libdbus-1-3 libcurl3 expect grep zip make libgnome2-0 libudev-dev libpng12-0 libpython2.7 libpixman-1-0 libpng12-0" elif [ "fedora" = "${OS_NAME}" ]; then INSTALLATION_CHECK="procps-ng gettext dbus-libs libcurl expect gtk2 grep zip make libgnome qemu-user webkitgtk libpng12" @@ -73,7 +76,7 @@ fi pkg_list="" # ubuntu version 10.x and 11.x and 12.x and 32bit -if [ "ubuntu" = "${OS_NAME}" ] || [ "Ubuntu" = "${OS_NAME}" ] ; then +if [ "ubuntu" = "${OS_NAME}" ] ; then if [ "10.04" = ${OS_VERSION} ] || [ "10.10" = ${OS_VERSION} ]; then INSTALLATION_CHECK="$INSTALLATION_CHECK qemu-arm-static" elif [ "11.04" = ${OS_VERSION} ] || [ "11.10" = ${OS_VERSION} ]; then -- 2.7.4