nix-copy-closure: Add -v flag

And make exportPath() less spammy by default.
This commit is contained in:
Eelco Dolstra 2015-07-20 01:52:07 +02:00
parent db55940d9e
commit ccf31dbc25
4 changed files with 15 additions and 3 deletions

View file

@ -1510,7 +1510,7 @@ void LocalStore::exportPath(const Path & path, bool sign,
{
assertStorePath(path);
printMsg(lvlInfo, format("exporting path %1%") % path);
printMsg(lvlTalkative, format("exporting path %1%") % path);
if (!isValidPath(path))
throw Error(format("path %1% is not valid") % path);
@ -1613,6 +1613,8 @@ Path LocalStore::importPath(bool requireSignature, Source & source)
Path dstPath = readStorePath(hashAndReadSource);
printMsg(lvlTalkative, format("importing path %1%") % dstPath);
PathSet references = readStorePaths<PathSet>(hashAndReadSource);
Path deriver = readString(hashAndReadSource);