mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2025-01-18 23:01:07 +02:00
Werner Almesberger
0229051f07
qpkg: change prerequisite resolution order to be fully depth-first
Until now, when considering adding a package, we processed its dependencies after completing the current list of dependencies. E.g., if we had a package A that depended on B and C, B depended on D, and C depended on E, then the sequence would have been A, B, C, ... We now process the dependencies of a package immediately after considering the package, so the sequence above would become A, B, D, C, ... The advantage of the new order is that it becomes easier to follow the dependency tree, which will be beneficial for loop detection and for ordering packages by installation order. - prereq.c (resolve): change prerequisite resolution order such that the dependencies of the package being considered are processed immediately, instead of deferring them until the end of the current dependency list - prereq.c (prereq): we can now pass the list of dependencies directly, without needing a list of lists element - test/resorder: test resolution order
Description
Werner's Miscellanea, Assorted small items that don't fit anywhere else
http://projects.qi-hardware.com/index.php/p/wernermisc/
Languages
C
44.8%
TeX
17.3%
Shell
13.4%
Perl
7.8%
Makefile
7.6%
Other
9.1%