summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:20:49 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:20:49 (EST)
commitd4bb3c4ac6f3954126fc5fb38da567c89738ffb3 (patch)
tree62127f32d1f64a70c27677a19a90d5f9f79d1fd0
parent83c801f7e3e22f454be18f79c605b308495b43ac (diff)
opkg: run pre-install check before listing upgradable packages to ensure all
data is valid. Fixes bug 1433. git-svn-id: http://opkg.googlecode.com/svn/trunk@125 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/opkg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libopkg/opkg.c b/libopkg/opkg.c
index 3d5447f..8ff8075 100644
--- a/libopkg/opkg.c
+++ b/libopkg/opkg.c
@@ -900,6 +900,9 @@ opkg_list_upgradable_packages (opkg_t *opkg, opkg_package_callback_t callback, v
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++)