aboutsummaryrefslogtreecommitdiff
path: root/src/nix-store
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-store')
-rw-r--r--src/nix-store/nix-store.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index 79002626d..d53e93b7f 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -891,16 +891,8 @@ static void opServe(Strings opFlags, Strings opArgs)
for (auto & i : paths) {
try {
auto info = store->queryPathInfo(i);
- out << store->printStorePath(info->path)
- << (info->deriver ? store->printStorePath(*info->deriver) : "");
- ServeProto::write(*store, wconn, info->references);
- // !!! Maybe we want compression?
- out << info->narSize // downloadSize
- << info->narSize;
- if (GET_PROTOCOL_MINOR(clientVersion) >= 4)
- out << info->narHash.to_string(Base32, true)
- << renderContentAddress(info->ca)
- << info->sigs;
+ out << store->printStorePath(info->path);
+ ServeProto::write(*store, wconn, static_cast<const UnkeyedValidPathInfo &>(*info));
} catch (InvalidPath &) {
}
}