This commit is contained in:
		
							parent
							
								
									3d55f1eb57
								
							
						
					
					
						commit
						ca50c83fbb
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -512,6 +512,11 @@ bool LocalStore::tryToDelete(GCState & state, const Path & path)
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /* If gc-keep-derivations and gc-keep-outputs are both set,
 | 
				
			||||||
 | 
					           it's possible that the path has already been deleted (due
 | 
				
			||||||
 | 
					           to the recursion below), so bail out. */
 | 
				
			||||||
 | 
					        if (!pathExists(path)) return true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /* If gc-keep-outputs is set, then don't delete this path if
 | 
					        /* If gc-keep-outputs is set, then don't delete this path if
 | 
				
			||||||
           its deriver is not garbage.  !!! This is somewhat buggy,
 | 
					           its deriver is not garbage.  !!! This is somewhat buggy,
 | 
				
			||||||
           since there might be multiple derivers, but the database
 | 
					           since there might be multiple derivers, but the database
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue