Skip to content

Commit 2eee192

Browse files
committed
only write distributions file if dne
Signed-off-by: Jessica Frazelle <[email protected]>
1 parent 7886056 commit 2eee192

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

hack/make/release-deb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,19 @@ APTDIR=$DOCKER_RELEASE_DIR/apt/repo
2121
mkdir -p "$APTDIR/conf" "$APTDIR/db"
2222

2323
# create/update distributions file
24-
for suite in $(exec contrib/reprepro/suites.sh); do
25-
cat <<-EOF
26-
Origin: Docker
27-
Suite: $suite
28-
Codename: $suite
29-
Architectures: amd64 i386
30-
Components: main testing experimental
31-
Description: Docker APT Repository
24+
if [[ ! -f "$APTDIR/conf/distributions" ]]; then
25+
for suite in $(exec contrib/reprepro/suites.sh); do
26+
cat <<-EOF
27+
Origin: Docker
28+
Suite: $suite
29+
Codename: $suite
30+
Architectures: amd64 i386
31+
Components: main testing experimental
32+
Description: Docker APT Repository
3233
33-
EOF
34-
done > "$APTDIR/conf/distributions"
34+
EOF
35+
done > "$APTDIR/conf/distributions"
36+
fi
3537

3638
# set the component and priority for the version being released
3739
component="main"

0 commit comments

Comments
 (0)