1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix release-deb script

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2016-06-02 07:38:32 -07:00
parent 09be7d9ee4
commit afc2579d1a

View file

@ -29,7 +29,8 @@ arches=( amd64 i386 )
# Preserve existing components but don't add any non-existing ones # Preserve existing components but don't add any non-existing ones
for component in main testing experimental ; do for component in main testing experimental ; do
if ls "$APTDIR/dists/*/$component" >/dev/null 2>&1 ; then exists=$(find "$APTDIR/dists" -mindepth 2 -maxdepth 2 -type d -name "$component" -print -quit)
if [ -n "$exists" ] ; then
components+=( $component ) components+=( $component )
fi fi
done done
@ -89,14 +90,12 @@ for dir in contrib/builder/deb/${PACKAGE_ARCH}/*/; do
EOF EOF
done >> "$APTDIR/conf/apt-ftparchive.conf" done >> "$APTDIR/conf/apt-ftparchive.conf"
if [ ! -f "$APTDIR/conf/docker-engine-release.conf" ]; then cat <<-EOF > "$APTDIR/conf/docker-engine-release.conf"
cat <<-EOF > "$APTDIR/conf/docker-engine-release.conf" APT::FTPArchive::Release::Origin "Docker";
APT::FTPArchive::Release::Origin "Docker"; APT::FTPArchive::Release::Components "${component}";
APT::FTPArchive::Release::Components "${components[*]}"; APT::FTPArchive::Release::Label "Docker APT Repository";
APT::FTPArchive::Release::Label "Docker APT Repository"; APT::FTPArchive::Release::Architectures "${arches[*]}";
APT::FTPArchive::Release::Architectures "${arches[*]}"; EOF
EOF
fi
# release the debs # release the debs
for dir in contrib/builder/deb/${PACKAGE_ARCH}/*/; do for dir in contrib/builder/deb/${PACKAGE_ARCH}/*/; do