__apt_update_index: ignore top level directory
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								7e951fd4d1
							
						
					
				
			
			
				commit
				
					
						8f525fbc83
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -20,7 +20,7 @@
 | 
			
		|||
 | 
			
		||||
# run 'apt-get update' if anything in /etc/apt is newer then /var/lib/apt/lists
 | 
			
		||||
cat << DONE
 | 
			
		||||
if find /etc/apt -cnewer /var/lib/apt/lists | grep . > /dev/null; then
 | 
			
		||||
if find /etc/apt -mindepth 1 -cnewer /var/lib/apt/lists | grep . > /dev/null; then
 | 
			
		||||
   apt-get update || apt-get update
 | 
			
		||||
fi
 | 
			
		||||
DONE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue