download.cc: fix path for cached files
This commit is contained in:
		
							parent
							
								
									2bc6cfe1ad
								
							
						
					
					
						commit
						59b32403f2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -632,7 +632,7 @@ Path Downloader::downloadCached(ref<Store> store, const string & url_, bool unpa
 | 
			
		|||
    if (expectedHash) {
 | 
			
		||||
        expectedStorePath = store->makeFixedOutputPath(unpack, expectedHash, name);
 | 
			
		||||
        if (store->isValidPath(expectedStorePath))
 | 
			
		||||
            return expectedStorePath;
 | 
			
		||||
            return store->toRealPath(expectedStorePath);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Path cacheDir = getCacheDir() + "/nix/tarballs";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue