* Slight improvement.

This commit is contained in:
Eelco Dolstra 2011-12-01 13:51:05 +00:00
parent 24f863d86b
commit 23c38a04cc

View file

@ -364,12 +364,11 @@ static void performOp(unsigned int clientVersion,
addToStoreFromDump(). */
ParseSink sink; /* null sink; just parse the NAR */
parseDump(sink, savedNAR);
} else {
} else
parseDump(savedRegular, from);
if (!savedRegular.regular) throw Error("regular file expected");
}
startWork();
if (!savedRegular.regular) throw Error("regular file expected");
Path path = dynamic_cast<LocalStore *>(store.get())
->addToStoreFromDump(recursive ? savedNAR.s : savedRegular.s, baseName, recursive, hashAlgo);
stopWork();