[PATCH] fix infinity loop in list_upgradable in libopkg

4 views
Skip to first unread message

dos

unread,
Jul 12, 2010, 12:23:58 PM7/12/10
to opkg-devel
Index: libopkg/opkg.c
===================================================================
--- libopkg/opkg.c (wersja 542)
+++ libopkg/opkg.c (kopia robocza)
@@ -760,7 +760,7 @@

head = prepare_upgrade_list();
for (node = active_list_next(head, head); node;
- active_list_next(head, node)) {
+ node = active_list_next(head, node)) {
old = list_entry(node, pkg_t, list);
new = pkg_hash_fetch_best_installation_candidate_by_name(old-
>name);
if (new == NULL)

Sebastian Krzyszkowiak

unread,
Jul 12, 2010, 3:02:41 PM7/12/10
to opkg-...@googlegroups.com
Patch attached. PackageKit backend uses this function and without this
patch it's just stuck in infinite loop with the first resulted
package.

--
Sebastian Krzyszkowiak
dos

0001-fix-listing-upgradable-pkgs-with-libopkg.patch

Graham Gower

unread,
Jul 12, 2010, 7:38:12 PM7/12/10
to opkg-...@googlegroups.com

Committed as r543. Thanks for the patch.

-Graham

Reply all
Reply to author
Forward
0 new messages