зеркало из https://github.com/microsoft/docker.git
Merge pull request #15063 from jfrazelle/only-write-distributions-file-if-dne
only write distributions file if dne
This commit is contained in:
Коммит
cc6138d946
|
@ -21,17 +21,19 @@ APTDIR=$DOCKER_RELEASE_DIR/apt/repo
|
||||||
mkdir -p "$APTDIR/conf" "$APTDIR/db"
|
mkdir -p "$APTDIR/conf" "$APTDIR/db"
|
||||||
|
|
||||||
# create/update distributions file
|
# create/update distributions file
|
||||||
for suite in $(exec contrib/reprepro/suites.sh); do
|
if [[ ! -f "$APTDIR/conf/distributions" ]]; then
|
||||||
cat <<-EOF
|
for suite in $(exec contrib/reprepro/suites.sh); do
|
||||||
Origin: Docker
|
cat <<-EOF
|
||||||
Suite: $suite
|
Origin: Docker
|
||||||
Codename: $suite
|
Suite: $suite
|
||||||
Architectures: amd64 i386
|
Codename: $suite
|
||||||
Components: main testing experimental
|
Architectures: amd64 i386
|
||||||
Description: Docker APT Repository
|
Components: main testing experimental
|
||||||
|
Description: Docker APT Repository
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
done > "$APTDIR/conf/distributions"
|
done > "$APTDIR/conf/distributions"
|
||||||
|
fi
|
||||||
|
|
||||||
# set the component and priority for the version being released
|
# set the component and priority for the version being released
|
||||||
component="main"
|
component="main"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче