mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
printMsg(lvlError, ...) -> printError(...) etc.
This commit is contained in:
parent
4036185cb4
commit
c55bf085eb
30 changed files with 140 additions and 140 deletions
|
@ -122,7 +122,7 @@ int main(int argc, char * * argv)
|
|||
/* Extract the hash mode. */
|
||||
attr = v.attrs->find(state.symbols.create("outputHashMode"));
|
||||
if (attr == v.attrs->end())
|
||||
printMsg(lvlInfo, "warning: this does not look like a fetchurl call");
|
||||
printInfo("warning: this does not look like a fetchurl call");
|
||||
else
|
||||
unpack = state.forceString(*attr->value) == "recursive";
|
||||
|
||||
|
@ -166,7 +166,7 @@ int main(int argc, char * * argv)
|
|||
|
||||
/* Optionally unpack the file. */
|
||||
if (unpack) {
|
||||
printMsg(lvlInfo, "unpacking...");
|
||||
printInfo("unpacking...");
|
||||
Path unpacked = (Path) tmpDir + "/unpacked";
|
||||
createDirs(unpacked);
|
||||
if (hasSuffix(baseNameOf(uri), ".zip"))
|
||||
|
@ -201,7 +201,7 @@ int main(int argc, char * * argv)
|
|||
}
|
||||
|
||||
if (!printPath)
|
||||
printMsg(lvlInfo, format("path is ‘%1%’") % storePath);
|
||||
printInfo(format("path is ‘%1%’") % storePath);
|
||||
|
||||
std::cout << printHash16or32(hash) << std::endl;
|
||||
if (printPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue