Merge remote-tracking branch 'rsa/tizen_2.2' into tizen accepted/tizen/20131014.132013 accepted/tizen/20131014.170403 accepted/tizen/20131014.182805 submit/tizen/20131014.114835 submit/tizen/20131014.115253
authorHoseon LEE <hoseon46.lee@samsung.com>
Mon, 14 Oct 2013 10:49:09 +0000 (19:49 +0900)
committerHoseon LEE <hoseon46.lee@samsung.com>
Mon, 14 Oct 2013 10:49:15 +0000 (19:49 +0900)
Conflicts:
packaging/wrt-commons.spec

1  2 
packaging/wrt-commons.spec

@@@ -1,11 -1,12 +1,11 @@@
 -#git:framework/web/wrt-commons
  Name:       wrt-commons
  Summary:    Wrt common library
- Version:    0.2.153
+ Version:    0.2.157
  Release:    1
 -Group:      Development/Libraries
 -License:    Apache License, Version 2.0
 -URL:        N/A
 +Group:      System/Libraries
 +License:    Apache-2.0
  Source0:    %{name}-%{version}.tar.gz
 +Source1001:   wrt-commons.manifest
  BuildRequires:  cmake
  BuildRequires:  pkgconfig(ecore)
  BuildRequires:  pkgconfig(appcore-efl)
@@@ -77,24 -79,30 +77,30 @@@ mkdir -p /opt/share/widget/syste
  mkdir -p /opt/share/widget/user
  mkdir -p /opt/share/widget/exec
  mkdir -p /opt/share/widget/data/Public
 -mkdir -p /usr/lib/wrt-plugins
 +mkdir -p %{_libdir}/wrt-plugins
  
- if [ -z ${2} ]; then
-     echo "This is new install of wrt-commons"
-     echo "Calling /usr/bin/wrt_commons_create_clean_db.sh"
-     /usr/bin/wrt_commons_create_clean_db.sh
- else
-     # Find out old and new version of databases
-     WRT_OLD_DB_VERSION=`sqlite3 /opt/dbspace/.wrt.db ".tables" | grep "DB_VERSION_"`
-     WRT_NEW_DB_VERSION=`cat /usr/share/wrt-engine/wrt_db.sql | tr '[:blank:]' '\n' | grep DB_VERSION_`
-     echo "OLD wrt database version ${WRT_OLD_DB_VERSION}"
-     echo "NEW wrt database version ${WRT_NEW_DB_VERSION}"
-     if [ ${WRT_OLD_DB_VERSION} -a ${WRT_NEW_DB_VERSION} ]
-     then
-         if [ ${WRT_NEW_DB_VERSION} = ${WRT_OLD_DB_VERSION} ]
+ #Don't reset DB when install on QEMU (during other packages building witch GBS)
+ if [ -z "$EMULATOR_ARCHS" ]; then
+     if [ -z ${2} ]; then
+         echo "This is new install of wrt-commons"
+         echo "Calling /usr/bin/wrt_commons_reset_db.sh"
+         /usr/bin/wrt_commons_reset_db.sh
+     else
+         # Find out old and new version of databases
+         WRT_OLD_DB_VERSION=`sqlite3 /opt/dbspace/.wrt.db ".tables" | grep "DB_VERSION_"`
+         WRT_NEW_DB_VERSION=`cat /usr/share/wrt-engine/wrt_db.sql | tr '[:blank:]' '\n' | grep DB_VERSION_`
+         echo "OLD wrt database version ${WRT_OLD_DB_VERSION}"
+         echo "NEW wrt database version ${WRT_NEW_DB_VERSION}"
+         if [ ${WRT_OLD_DB_VERSION} -a ${WRT_NEW_DB_VERSION} ]
          then
-             echo "Equal database detected so db installation ignored"
+             if [ ${WRT_NEW_DB_VERSION} = ${WRT_OLD_DB_VERSION} ]
+             then
+                 echo "Equal database detected so db installation ignored"
+             else
+                 echo "Calling /usr/bin/wrt_commons_reset_db.sh"
+                 /usr/bin/wrt_commons_reset_db.sh
+             fi
          else
              echo "Calling /usr/bin/wrt_commons_reset_db.sh"
              /usr/bin/wrt_commons_reset_db.sh