From 1e0c803b15ae53e5004433f1113e8eba5d7e03ac Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Tue, 5 Feb 2013 13:47:37 +0100 Subject: [PATCH] wrt_commons_reset.sh fix [Issue#] N/A [Bug] Cleaning file system fails [Cause] N/A [Solution] N/A [Verification] Install widget. Run script. Check if associated directory (pkgId) was removed Change-Id: Id11fc2bdefddaead51c28a8a5c20f3452bf20d8c --- etc/wrt_commons_reset_db.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/wrt_commons_reset_db.sh b/etc/wrt_commons_reset_db.sh index 8cf5c7a..7236341 100755 --- a/etc/wrt_commons_reset_db.sh +++ b/etc/wrt_commons_reset_db.sh @@ -28,7 +28,8 @@ then PKG_NAME_SET=$(sqlite3 $WRT_DB 'select tizen_appid from WidgetInfo;') for appid in $PKG_NAME_SET do - rm -rf ${WIDGET_EXEC_PATH}${appid} + pkgId=`echo "$appid" | cut -f1 -d"."` + rm -rf ${WIDGET_EXEC_PATH}${pkgId} widget_desktop_file="${WIDGET_DESKTOP_PATH}${appid}.desktop"; if [ -f ${widget_desktop_file} ]; then rm -f $widget_desktop_file; -- 2.34.1