From a9d99ab55fdaa1c9dde87eaa8d289ecdb8cf9068 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 14 Feb 2014 12:31:10 +0100 Subject: download-via-ssh: Use readStorePath --- src/nix-store/nix-store.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nix-store') diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index f017b9ead31b..365ffa19a0d8 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -7,6 +7,7 @@ #include "local-store.hh" #include "util.hh" #include "serve-protocol.hh" +#include "worker-protocol.hh" #include #include @@ -864,12 +865,12 @@ static void opServe(Strings opFlags, Strings opArgs) } switch (qCmd) { case qCmdHave: { - PathSet paths = readStrings(in); + PathSet paths = readStorePaths(in); writeStrings(store->queryValidPaths(paths), out); break; } case qCmdInfo: { - PathSet paths = readStrings(in); + PathSet paths = readStorePaths(in); // !!! Maybe we want a queryPathInfos? foreach (PathSet::iterator, i, paths) { if (!store->isValidPath(*i)) -- cgit 1.4.1