1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 02:11:15 +02:00

build-remote.pl: Fix building multiple output derivations

We were importing paths without sorting them topologically, leading to
"path is not valid" errors.

See e.g. http://hydra.nixos.org/build/12451761
This commit is contained in:
Eelco Dolstra 2014-07-14 12:19:27 +02:00
parent b2e0293f02
commit fa13d3f4f3
3 changed files with 6 additions and 4 deletions

View file

@ -992,7 +992,9 @@ static void opServe(Strings opFlags, Strings opArgs)
}
case cmdExportPaths: {
exportPaths(*store, readStorePaths<Paths>(in), false, out);
Paths sorted = topoSortPaths(*store, readStorePaths<PathSet>(in));
reverse(sorted.begin(), sorted.end());
exportPaths(*store, sorted, false, out);
break;
}