* Canonicalise path meta-data in `nix-store --register-validity'.
This commit is contained in:
		
							parent
							
								
									f20f081560
								
							
						
					
					
						commit
						a04c62e0c4
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -423,8 +423,11 @@ static void opRegisterValidity(Strings opFlags, Strings opArgs)
 | 
			
		|||
            references.insert(s);
 | 
			
		||||
        }
 | 
			
		||||
        if (!cin || cin.eof()) throw Error("missing input");
 | 
			
		||||
        if (!isValidPathTxn(txn, path))
 | 
			
		||||
        if (!isValidPathTxn(txn, path)) {
 | 
			
		||||
            /* !!! races */
 | 
			
		||||
            canonicalisePathMetaData(path);
 | 
			
		||||
            registerValidPath(txn, path, hashPath(htSHA256, path), references, deriver);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    txn.commit();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue