Fixed preinstall widget wasn't installed after factory reset
authorSoyoung Kim <sy037.kim@samsung.com>
Fri, 28 Sep 2012 05:27:43 +0000 (14:27 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Tue, 9 Oct 2012 07:36:09 +0000 (16:36 +0900)
 -  Pluings should need to install after facotry reset.
    But required file(plugin-installation-required) wasn't backuped.
    So widget installtion failed.

debian/wrt-installer.postinst
etc/wrt_preinstall_widgets.sh
packaging/wrt-installer.spec
src/jobs/widget_install/task_commons.cpp

index c72a8b2..ce2fd36 100755 (executable)
@@ -6,7 +6,7 @@ chmod +s /usr/bin/wrt-installer
 ln -sf /usr/bin/wrt-installer /usr/etc/package-manager/backend/wgt
 
 #for recovery
-mkdir -p /opt/apps/widget/temp_info
+mkdir -p /opt/share/widget/temp_info
 ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh
 ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh
 
index 3732590..b639ae5 100755 (executable)
@@ -15,7 +15,7 @@
 #
 
 _working_dir="/opt/media/Downloads/.preinstallWidgets"
-_widget_temp="/opt/apps/widget/*";
+_widget_temp="/opt/share/widget/*";
 
 install_widgets() {
        _wgt_list=`find $_working_dir -name '*.wgt'`
@@ -38,7 +38,7 @@ done
 
 
 #Reinstall widget during booting
-_temp_widget_path=/opt/apps/widget/temp_info
+_temp_widget_path=/opt/share/widget/temp_info
 
 FILE_LIST=`ls $_temp_widget_path`
 
index 653c2de..85ea053 100644 (file)
@@ -67,7 +67,7 @@ chmod +s /usr/bin/wrt-installer
 ln -sf /usr/bin/wrt-installer /usr/etc/package-manager/backend/wgt
 
 #for booting recovery
-mkdir -p /opt/apps/widget/temp_info
+mkdir -p /opt/share/widget/temp_info
 [ -h /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh
 [ -h /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh
 ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh
index b64e61b..983a68f 100644 (file)
@@ -82,8 +82,6 @@ std::string createTempPath()
 
    tempPathBuilder << WrtDB::GlobalConfig::GetUserInstalledWidgetPath();
    tempPathBuilder << "/";
-   tempPathBuilder << "widget";
-   tempPathBuilder << "/";
    tempPathBuilder << TEMPORARY_PATH_POSTFIX;
    tempPathBuilder << "_";