nix copy: Abbreviate "daemon"

This commit is contained in:
Eelco Dolstra 2017-11-20 15:17:11 +01:00
parent 8956ae1987
commit 7474ac871b
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE

View File

@ -577,9 +577,9 @@ void copyStorePath(ref<Store> srcStore, ref<Store> dstStore,
auto dstUri = dstStore->getUri();
Activity act(*logger, lvlInfo, actCopyPath,
srcUri == "local"
srcUri == "local" || srcUri == "daemon"
? fmt("copying path '%s' to '%s'", storePath, dstUri)
: dstUri == "local"
: dstUri == "local" || dstUri == "daemon"
? fmt("copying path '%s' from '%s'", storePath, srcUri)
: fmt("copying path '%s' from '%s' to '%s'", storePath, srcUri, dstUri),
{storePath, srcUri, dstUri});