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

Whitespace

This commit is contained in:
Eelco Dolstra 2012-12-03 18:19:49 +01:00
parent 8eed07cda4
commit 4bb4d5479a
3 changed files with 58 additions and 60 deletions

View file

@ -41,7 +41,7 @@ Generations findGenerations(Path profile, int & curGen)
Path profileDir = dirOf(profile);
string profileName = baseNameOf(profile);
Strings names = readDirectory(profileDir);
for (Strings::iterator i = names.begin(); i != names.end(); ++i) {
int n;
@ -116,7 +116,7 @@ void switchLink(Path link, Path target)
{
/* Hacky. */
if (dirOf(target) == dirOf(link)) target = baseNameOf(target);
Path tmp = canonPath(dirOf(link) + "/.new_" + baseNameOf(link));
if (symlink(target.c_str(), tmp.c_str()) != 0)
throw SysError(format("creating symlink `%1%'") % tmp);
@ -146,4 +146,3 @@ string optimisticLockProfile(const Path & profile)
}