mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 12:10:59 +01:00
State revisions are now printed like this: Rev. 01 @ Mon Aug 6 15:48:37 2007 (1186408117) -- Initial build revision.
This commit is contained in:
parent
696f1fd5e2
commit
13f321e397
12 changed files with 124 additions and 49 deletions
|
|
@ -1248,7 +1248,19 @@ void ensureDirExists(const Path & path)
|
|||
Strings p_args;
|
||||
p_args.push_back("-p");
|
||||
p_args.push_back(path);
|
||||
runProgram_AndPrintOutput("mkdir", true, p_args, "mkdir"); //TODO ensurePath
|
||||
runProgram_AndPrintOutput("mkdir", true, p_args, "mkdir"); //TODO ensurePath
|
||||
}
|
||||
|
||||
string padd(const string & s, char c , unsigned int size, bool front)
|
||||
{
|
||||
string ss = s;
|
||||
while (ss.length() < size){
|
||||
if(front)
|
||||
ss = c + ss;
|
||||
else
|
||||
ss = ss + c;
|
||||
}
|
||||
return ss;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue