opkg: write the status change after actually updated.
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:25:26 +0000 (05:25 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:25:26 +0000 (05:25 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@137 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg.c

index 8841b50f40fcf53e8f5734a75a15ced90bf9f069..bb0470d0da439d34c675ea3c58e0b3b74efa1479 100644 (file)
@@ -656,6 +656,11 @@ opkg_upgrade_package (opkg_t *opkg, const char *package_name, opkg_progress_call
   err = opkg_configure_packages (opkg->conf, NULL);
   if (err)
     return OPKG_UNKNOWN_ERROR;
   err = opkg_configure_packages (opkg->conf, NULL);
   if (err)
     return OPKG_UNKNOWN_ERROR;
+
+  /* write out status files and file lists */
+  opkg_conf_write_status_files (opkg->conf);
+  pkg_write_changed_filelists (opkg->conf);
+
   progress (pdata, 100);
   opkg_package_free (pdata.package);
   return 0;
   progress (pdata, 100);
   opkg_package_free (pdata.package);
   return 0;