1
1
Fork 0
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:
Wouter den Breejen 2007-07-09 11:59:29 +00:00
parent bc2fbabc12
commit 9257f16c85
5 changed files with 53 additions and 10 deletions

View file

@ -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);