mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	only write distributions file if dne
Signed-off-by: Jessica Frazelle <princess@docker.com>
This commit is contained in:
		
							parent
							
								
									7886056d74
								
							
						
					
					
						commit
						2eee192366
					
				
					 1 changed files with 12 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -21,17 +21,19 @@ APTDIR=$DOCKER_RELEASE_DIR/apt/repo
 | 
			
		|||
mkdir -p "$APTDIR/conf" "$APTDIR/db"
 | 
			
		||||
 | 
			
		||||
# create/update distributions file
 | 
			
		||||
for suite in $(exec contrib/reprepro/suites.sh); do
 | 
			
		||||
	cat <<-EOF
 | 
			
		||||
	Origin: Docker
 | 
			
		||||
	Suite: $suite
 | 
			
		||||
	Codename: $suite
 | 
			
		||||
	Architectures: amd64 i386
 | 
			
		||||
	Components: main testing experimental
 | 
			
		||||
	Description: Docker APT Repository
 | 
			
		||||
if [[ ! -f "$APTDIR/conf/distributions" ]]; then
 | 
			
		||||
	for suite in $(exec contrib/reprepro/suites.sh); do
 | 
			
		||||
		cat <<-EOF
 | 
			
		||||
		Origin: Docker
 | 
			
		||||
		Suite: $suite
 | 
			
		||||
		Codename: $suite
 | 
			
		||||
		Architectures: amd64 i386
 | 
			
		||||
		Components: main testing experimental
 | 
			
		||||
		Description: Docker APT Repository
 | 
			
		||||
 | 
			
		||||
	EOF
 | 
			
		||||
done > "$APTDIR/conf/distributions"
 | 
			
		||||
		EOF
 | 
			
		||||
	done > "$APTDIR/conf/distributions"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# set the component and priority for the version being released
 | 
			
		||||
component="main"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue