mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 04:30:59 +01:00
Besides directorys, single files can now also be versioned (or excluded)
This commit is contained in:
parent
bc2fbabc12
commit
9257f16c85
5 changed files with 53 additions and 10 deletions
|
|
@ -69,8 +69,13 @@ void createStateDirs(const DerivationStateOutputDirs & stateOutputDirs, const De
|
|||
DerivationStateOutputDir d = i->second;
|
||||
|
||||
string thisdir = d.path;
|
||||
|
||||
//Check if it is a file
|
||||
if(thisdir.substr(thisdir.length() -1 , thisdir.length()) != "/")
|
||||
continue;
|
||||
|
||||
Path fullstatedir = stateDir + "/" + thisdir;
|
||||
|
||||
|
||||
Strings p_args;
|
||||
p_args.push_back("-p");
|
||||
p_args.push_back(fullstatedir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue