[pacman-dev] [PATCH] Exit with 0/SUCCESS if there are no packages to remove
            
            
            
                29 Oct
                
                    2014
                
            
            
                29 Oct
                
                '14
                
            
            
            
        
    
                1:16 p.m.
            
        Previously the lack of candidate packages was considered an error and return 1/FAILURE but really this isn't an issue. Also, for systemd (and others) this flagged the instance as having failed for no good reason. Signed-off-by: Eric Schultz <eric@schultzter.ca> --- contrib/paccache.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/paccache.sh.in b/contrib/paccache.sh.in index 71aee23..b3b553d 100644 --- a/contrib/paccache.sh.in +++ b/contrib/paccache.sh.in @@ -328,7 +328,7 @@ done if (( ! ${#candidates[*]} )); then msg 'no candidate packages found for pruning' - exit 1 + exit 0 fi # grab this prior to signature scavenging -- 2.1.2
        4020
        
      
          Age (days ago)
        
      
        4020
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                
                Eric Schultz