mirror of
https://github.com/NixOS/nix
synced 2025-07-02 17:41:48 +02:00
* Create missing log and temproots directories automatically (reported
by Rob).
This commit is contained in:
parent
d1487d9015
commit
c6178f0b03
4 changed files with 25 additions and 13 deletions
|
@ -1211,10 +1211,16 @@ void DerivationGoal::computeClosure()
|
|||
}
|
||||
|
||||
|
||||
static string drvsLogDir = "drvs";
|
||||
|
||||
|
||||
void DerivationGoal::openLogFile()
|
||||
{
|
||||
/* Create a log file. */
|
||||
Path logFileName = nixLogDir + "/drvs/" + baseNameOf(drvPath);
|
||||
Path dir = (format("%1%/%2%") % nixLogDir % drvsLogDir).str();
|
||||
createDirs(dir);
|
||||
|
||||
Path logFileName = (format("%1%/%2%") % dir % baseNameOf(drvPath)).str();
|
||||
fdLogFile = open(logFileName.c_str(),
|
||||
O_CREAT | O_WRONLY | O_TRUNC, 0666);
|
||||
if (fdLogFile == -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue