1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-25 11:49:35 +01:00

* Got Fix working again.

This commit is contained in:
Eelco Dolstra 2003-07-06 14:20:47 +00:00
parent f826e432aa
commit 82e3d8fafe
7 changed files with 298 additions and 23 deletions

View file

@ -34,7 +34,7 @@ struct CopySource : RestoreSource
};
void copyFile(string src, string dst)
void copyPath(string src, string dst)
{
/* Unfortunately C++ doesn't support coprocedures, so we have no
nice way to chain CopySink and CopySource together. Instead we
@ -99,7 +99,7 @@ void addToStore(string srcPath, string & dstPath, Hash & hash)
string baseName = baseNameOf(srcPath);
dstPath = nixStore + "/" + (string) hash + "-" + baseName;
copyFile(srcPath, dstPath);
copyPath(srcPath, dstPath);
setDB(nixDB, dbRefs, hash, dstPath);
}