Fix dependency generator:

When the .dep file is scanned during the tree building, it outputs dependencies
in the file order, while when the tree is scanned later, dependencies are
output in alphabetical order. This may eventually lead to a wrong order
at the end. To be sure that both output are the same, just sort
the .dep file before scanning it.
This commit is contained in:
Pierre Labastie 2015-02-22 15:16:49 +00:00
parent f2e80acf4c
commit d607ac3717

View file

@ -113,6 +113,7 @@ of ${BOLD}${DepFile%.dep}${OFF}"
../xsl/dependencies.xsl ../packages.xml
if [[ -f ${id_of_dep}.dep ]]; then
sort ${id_of_dep}.dep -o ${id_of_dep}.dep
sed -i "1i${rootlink[*]} $count" ${id_of_dep}.dep
generate_dependency_tree ${id_of_dep}.dep
# Test return value, in case we exchange dependencies