r4460 - trunk/src/target/opkg/libopkg

thomas at docs.openmoko.org thomas at docs.openmoko.org
Fri May 30 16:46:43 CEST 2008


Author: thomas
Date: 2008-05-30 16:46:42 +0200 (Fri, 30 May 2008)
New Revision: 4460

Modified:
   trunk/src/target/opkg/libopkg/opkg.c
Log:
opkg: run pre-install check before listing upgradable packages to ensure all
data is valid. Fixes bug 1433.


Modified: trunk/src/target/opkg/libopkg/opkg.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg.c	2008-05-29 14:00:11 UTC (rev 4459)
+++ trunk/src/target/opkg/libopkg/opkg.c	2008-05-30 14:46:42 UTC (rev 4460)
@@ -900,6 +900,9 @@
   opkg_assert (opkg);
   opkg_assert (callback);
 
+  /* ensure all data is valid */
+  pkg_info_preinstall_check (opkg->conf);
+
   all = pkg_vec_alloc ();
   pkg_hash_fetch_available (&opkg->conf->pkg_hash, all);
   for (i = 0; i < all->len; i++)





More information about the commitlog mailing list