From 6c66fa6053287a5e472ec406268776de992c56ac Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 21 Nov 2010 15:53:39 -0300 Subject: [PATCH] qpkg: store dependencies and conflicts in file order - gobble.c (gobble_buf): list_with_version reversed the order of the list items. It makes the behaviour of later algorithms more intuitive if we maintain the file order. --- qpkg/gobble.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qpkg/gobble.c b/qpkg/gobble.c index a64f750..eb8bedd 100644 --- a/qpkg/gobble.c +++ b/qpkg/gobble.c @@ -413,8 +413,9 @@ list_with_version: ref->version = ID(versions)->key; EXPECT(")"); } - ref->next = *anchor; *anchor = ref; + ref->next = NULL; + anchor = &ref->next; if (buf == end) DONE; if (*buf != ',')