Revert "change pkgname to appid PART 2."
authorTaejeong Lee <taejeong.lee@samsung.com>
Fri, 25 Jan 2013 12:50:29 +0000 (21:50 +0900)
committerTaejeong Lee <taejeong.lee@samsung.com>
Fri, 25 Jan 2013 12:50:36 +0000 (21:50 +0900)
This reverts commit 70be5ceaf442eac4105a0e45ea39a1b63bb67b0e.

Change-Id: Ia590d04ced8298127de2c8cd93ecc3d1b3233fba

etc/wrt_commons_reset_db.sh

index 8cf5c7a..940af1f 100755 (executable)
@@ -25,11 +25,11 @@ PLUGINS_INSTALLATION_REQUIRED=plugin-installation-required
 
 if [ -f ${WRT_DB} ]
 then
-    PKG_NAME_SET=$(sqlite3 $WRT_DB 'select tizen_appid from WidgetInfo;')
-    for appid in $PKG_NAME_SET
+    PKG_NAME_SET=$(sqlite3 $WRT_DB 'select pkgname from WidgetInfo;')
+    for pkgname in $PKG_NAME_SET
     do
-        rm -rf ${WIDGET_EXEC_PATH}${appid}
-        widget_desktop_file="${WIDGET_DESKTOP_PATH}${appid}.desktop";
+        rm -rf ${WIDGET_EXEC_PATH}${pkgname}
+        widget_desktop_file="${WIDGET_DESKTOP_PATH}${pkgname}.desktop";
         if [ -f ${widget_desktop_file} ]; then
             rm -f $widget_desktop_file;
         fi