mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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
1 changed files with 3 additions and 23 deletions
|
@ -25,22 +25,7 @@ mkdir -p "$APTDIR/conf" "$APTDIR/db"
|
|||
arches=( amd64 i386 )
|
||||
components=( main testing experimental )
|
||||
|
||||
# create/update distributions 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
|
||||
# create/update apt-ftparchive file
|
||||
if [ ! -f "$APTDIR/conf/apt-ftparchive.conf" ]; then
|
||||
cat <<-EOF > "$APTDIR/conf/apt-ftparchive.conf"
|
||||
Dir {
|
||||
|
@ -85,20 +70,15 @@ if [ ! -f "$APTDIR/conf/docker-engine-release.conf" ]; then
|
|||
EOF
|
||||
fi
|
||||
|
||||
# set the component and priority for the version being released
|
||||
# set the component for the version being released
|
||||
component="main"
|
||||
priority=700
|
||||
options="--keepunreferencedfiles"
|
||||
|
||||
if [[ "$VERSION" == *-rc* ]]; then
|
||||
component="testing"
|
||||
priority=650
|
||||
fi
|
||||
|
||||
if [ $DOCKER_EXPERIMENTAL ] || [[ "$VERSION" == *-dev ]] || [ -n "$(git status --porcelain)" ]; then
|
||||
component="experimental"
|
||||
priority=600
|
||||
options=
|
||||
fi
|
||||
|
||||
# release the debs
|
||||
|
@ -130,7 +110,7 @@ apt-ftparchive generate "$APTDIR/conf/apt-ftparchive.conf"
|
|||
|
||||
for dir in contrib/builder/deb/*/; do
|
||||
version="$(basename "$dir")"
|
||||
codename="${version//debootstrap-}"
|
||||
codename="${version//debootstrap-}"
|
||||
|
||||
apt-ftparchive \
|
||||
-o "APT::FTPArchive::Release::Codename=$codename" \
|
||||
|
|
Loading…
Reference in a new issue