Replace message "importing path <...>" with "exporting path <...>"

This causes nix-copy-closure to show what it's doing before rather
than after.
This commit is contained in:
Eelco Dolstra 2014-07-10 21:30:22 +02:00
parent 42d91b079c
commit edbfe2232e
1 changed files with 2 additions and 2 deletions

View File

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