mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 17:16:15 +02:00
nix-store --serve: Don't fail if asked for info about non-valid path
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
9488447594
commit
188f96500b
1 changed files with 2 additions and 0 deletions
|
@ -269,6 +269,8 @@ void StoreAPI::serve(Source & in, Sink & out, bool sign)
|
|||
} else if (cmd == "info") {
|
||||
// !!! Maybe we want a queryPathInfos?
|
||||
foreach (PathSet::iterator, i, paths) {
|
||||
if (!isValidPath(*i))
|
||||
continue;
|
||||
ValidPathInfo info = queryPathInfo(*i);
|
||||
writeString(info.path, out);
|
||||
writeString(info.deriver, out);
|
||||
|
|
Loading…
Reference in a new issue