about summary refs log tree commit diff
path: root/src/nix-env/user-env.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-12-03T17·19+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-12-03T17·19+0100
commit4bb4d5479a8a2c2ed04bd65312ce1bfb6d2c0b13 (patch)
tree4ba3c53d51d60203a9f8a7d3aff615eafd64a8f4 /src/nix-env/user-env.cc
parent8eed07cda4c193bfcdd6ac4345ac6fb54aee0269 (diff)
Whitespace
Diffstat (limited to 'src/nix-env/user-env.cc')
-rw-r--r--src/nix-env/user-env.cc21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/nix-env/user-env.cc b/src/nix-env/user-env.cc
index 5b754bc8ca..0a50493fd1 100644
--- a/src/nix-env/user-env.cc
+++ b/src/nix-env/user-env.cc
@@ -91,15 +91,15 @@ bool createUserEnv(EvalState & state, DrvInfos & elems,
                 default: abort();
             }
         }
-    
+
         vMeta.attrs->sort();
         v.attrs->sort();
-        
+
         /* This is only necessary when installing store paths, e.g.,
            `nix-env -i /nix/store/abcd...-foo'. */
         store->addTempRoot(i->queryOutPath(state));
         store->ensurePath(i->queryOutPath(state));
-        
+
         references.insert(i->queryOutPath(state));
         if (drvPath != "") references.insert(drvPath);
     }
@@ -123,13 +123,13 @@ bool createUserEnv(EvalState & state, DrvInfos & elems,
     args.attrs->push_back(Attr(state.symbols.create("derivations"), &manifest));
     args.attrs->sort();
     mkApp(topLevel, envBuilder, args);
-        
+
     /* Evaluate it. */
     debug("evaluating user environment builder");
     DrvInfo topLevelDrv;
     if (!getDerivation(state, topLevel, topLevelDrv, false))
         abort();
-    
+
     /* Realise the resulting store expression. */
     debug("building user environment");
     store->buildPaths(singleton<PathSet>(topLevelDrv.queryDrvPath(state)), state.repair);
@@ -143,7 +143,7 @@ bool createUserEnv(EvalState & state, DrvInfos & elems,
         printMsg(lvlError, format("profile `%1%' changed while we were busy; restarting") % profile);
         return false;
     }
-    
+
     debug(format("switching to new user environment"));
     Path generation = createGeneration(profile, topLevelDrv.queryOutPath(state));
     switchLink(profile, generation);
@@ -181,7 +181,7 @@ static MetaInfo parseMeta(std::istream & str)
         expect(str, "Bind(");
 
         MetaValue value;
-        
+
         string name = parseString(str);
         expect(str, ",");
 
@@ -207,7 +207,7 @@ static MetaInfo parseMeta(std::istream & str)
         expect(str, ",NoPos)");
         meta[name] = value;
     }
-    
+
     expect(str, ")");
 
     return meta;
@@ -221,7 +221,7 @@ static void readLegacyManifest(const Path & path, DrvInfos & elems)
     expect(str, "List([");
 
     unsigned int n = 0;
-    
+
     while (!endOfList(str)) {
         DrvInfo elem;
         expect(str, "Attrs([");
@@ -230,7 +230,7 @@ static void readLegacyManifest(const Path & path, DrvInfos & elems)
             expect(str, "Bind(");
             string name = parseString(str);
             expect(str, ",");
-            
+
             if (name == "meta") elem.setMetaInfo(parseMeta(str));
             else {
                 string value = parseStr(str);
@@ -256,4 +256,3 @@ static void readLegacyManifest(const Path & path, DrvInfos & elems)
 
 
 }
-