diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-12-03T17·19+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-12-03T17·19+0100 |
commit | 4bb4d5479a8a2c2ed04bd65312ce1bfb6d2c0b13 (patch) | |
tree | 4ba3c53d51d60203a9f8a7d3aff615eafd64a8f4 /src/nix-env/profiles.cc | |
parent | 8eed07cda4c193bfcdd6ac4345ac6fb54aee0269 (diff) |
Whitespace
Diffstat (limited to 'src/nix-env/profiles.cc')
-rw-r--r-- | src/nix-env/profiles.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nix-env/profiles.cc b/src/nix-env/profiles.cc index 5cc0d9a1cd42..c327993594e8 100644 --- a/src/nix-env/profiles.cc +++ b/src/nix-env/profiles.cc @@ -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) } - |