update release-deb from the reprepro stuff we don't use
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
2465ab8814
commit
3057f0f0a7
|
@ -25,22 +25,7 @@ mkdir -p "$APTDIR/conf" "$APTDIR/db"
|
||||||
arches=( amd64 i386 )
|
arches=( amd64 i386 )
|
||||||
components=( main testing experimental )
|
components=( main testing experimental )
|
||||||
|
|
||||||
# create/update distributions file
|
# create/update apt-ftparchive file
|
||||||
if [ ! -f "$APTDIR/conf/distributions" ]; then
|
|
||||||
for suite in $(exec contrib/reprepro/suites.sh); do
|
|
||||||
cat <<-EOF
|
|
||||||
Origin: Docker
|
|
||||||
Suite: $suite
|
|
||||||
Codename: $suite
|
|
||||||
Architectures: ${arches[*]}
|
|
||||||
Components: ${components[*]}
|
|
||||||
Description: Docker APT Repository
|
|
||||||
|
|
||||||
EOF
|
|
||||||
done > "$APTDIR/conf/distributions"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# create/update distributions file
|
|
||||||
if [ ! -f "$APTDIR/conf/apt-ftparchive.conf" ]; then
|
if [ ! -f "$APTDIR/conf/apt-ftparchive.conf" ]; then
|
||||||
cat <<-EOF > "$APTDIR/conf/apt-ftparchive.conf"
|
cat <<-EOF > "$APTDIR/conf/apt-ftparchive.conf"
|
||||||
Dir {
|
Dir {
|
||||||
|
@ -85,20 +70,15 @@ if [ ! -f "$APTDIR/conf/docker-engine-release.conf" ]; then
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set the component and priority for the version being released
|
# set the component for the version being released
|
||||||
component="main"
|
component="main"
|
||||||
priority=700
|
|
||||||
options="--keepunreferencedfiles"
|
|
||||||
|
|
||||||
if [[ "$VERSION" == *-rc* ]]; then
|
if [[ "$VERSION" == *-rc* ]]; then
|
||||||
component="testing"
|
component="testing"
|
||||||
priority=650
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $DOCKER_EXPERIMENTAL ] || [[ "$VERSION" == *-dev ]] || [ -n "$(git status --porcelain)" ]; then
|
if [ $DOCKER_EXPERIMENTAL ] || [[ "$VERSION" == *-dev ]] || [ -n "$(git status --porcelain)" ]; then
|
||||||
component="experimental"
|
component="experimental"
|
||||||
priority=600
|
|
||||||
options=
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# release the debs
|
# release the debs
|
||||||
|
@ -130,7 +110,7 @@ apt-ftparchive generate "$APTDIR/conf/apt-ftparchive.conf"
|
||||||
|
|
||||||
for dir in contrib/builder/deb/*/; do
|
for dir in contrib/builder/deb/*/; do
|
||||||
version="$(basename "$dir")"
|
version="$(basename "$dir")"
|
||||||
codename="${version//debootstrap-}"
|
codename="${version//debootstrap-}"
|
||||||
|
|
||||||
apt-ftparchive \
|
apt-ftparchive \
|
||||||
-o "APT::FTPArchive::Release::Codename=$codename" \
|
-o "APT::FTPArchive::Release::Codename=$codename" \
|
||||||
|
|
Loading…
Reference in New Issue