mirror of
https://github.com/NixOS/nix.git
synced 2025-11-30 06:01:00 +01:00
Whitespace
This commit is contained in:
parent
8eed07cda4
commit
4bb4d5479a
3 changed files with 58 additions and 60 deletions
|
|
@ -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)
|
|||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue