mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	buildserver: retry apt-get downloads 20 times
Try harder before failing the whole buildserver setup.
This commit is contained in:
		
							parent
							
								
									68ec7c2e88
								
							
						
					
					
						commit
						3651e7eb9a
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -11,6 +11,9 @@ sed -i "s,http://ftp.uk.debian.org/debian/,${debian_mirror},g" /etc/apt/sources.
 | 
			
		|||
printf 'APT::Install-Recommends "0";\nAPT::Install-Suggests "0";\n' \
 | 
			
		||||
       > /etc/apt/apt.conf.d/99no-install-recommends
 | 
			
		||||
 | 
			
		||||
printf 'APT::Acquire::Retries "20";\n' \
 | 
			
		||||
       > /etc/apt/apt.conf.d/99acquire-retries
 | 
			
		||||
 | 
			
		||||
if grep --quiet jessie /etc/apt/sources.list; then
 | 
			
		||||
    echo "deb $debian_mirror jessie-backports main" > /etc/apt/sources.list.d/backports.list
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue