1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-15 06:54:04 +02:00

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.
This commit is contained in:
Werner Almesberger 2010-11-21 15:53:39 -03:00
parent 9272f5057d
commit 6c66fa6053

View File

@ -413,8 +413,9 @@ list_with_version:
ref->version = ID(versions)->key; ref->version = ID(versions)->key;
EXPECT(")"); EXPECT(")");
} }
ref->next = *anchor;
*anchor = ref; *anchor = ref;
ref->next = NULL;
anchor = &ref->next;
if (buf == end) if (buf == end)
DONE; DONE;
if (*buf != ',') if (*buf != ',')