diff options
author | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:33:16 (EST) |
---|---|---|
committer | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:33:16 (EST) |
commit | dc2a09c8ac265186ee78e025f45a523c53e3218d (patch) | |
tree | c1e6ed72cf9199b2645f40381509c4394da0d8db /libopkg/active_list.c | |
parent | d9a67cb93a593316d47fea6fe451dba1ea475e16 (diff) |
opkg: introduce active list into pkg_t
git-svn-id: http://opkg.googlecode.com/svn/trunk@173 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/active_list.c')
-rw-r--r-- | libopkg/active_list.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libopkg/active_list.c b/libopkg/active_list.c index 2694689..08e1bd7 100644 --- a/libopkg/active_list.c +++ b/libopkg/active_list.c @@ -86,6 +86,10 @@ static void list_head_clear (struct list_head *head) { } void active_list_clear(struct active_list *head) { list_head_clear(&head->node); + if (head->depend.next != &head->depend) { + list_head_clear(&head->depend); + } + active_list_init(head); } void active_list_add_depend(struct active_list *node, struct active_list *depend) { |