1
0
mirror of https://github.com/lxc/lxc-templates.git synced 2025-08-21 12:20:54 +00:00

Compare commits

..

No commits in common. "52cd46def45f2242fc1345d996e48b19c735d6b3" and "be64958bbe08e78d550a74efa72a21d8ee6ed4f8" have entirely different histories.

View File

@ -786,10 +786,9 @@ if [ "$arch" = "x86_64" ]; then
fi
release_file=${DEBIAN_MIRROR}/dists/${release}/main/binary-${arch}/Release
if ! wget -q -O /dev/null "${release_file}"; then
if [ "${release}" = unstable ] || [ "${release}" = sid ]; then
echo "${arch}/${release} not available on mirror, trying debian ports"
testing_release_file=${DEBIAN_MIRROR}/dists/testing/main/binary-${arch}/Release
if ! wget -q -O /dev/null "${testing_release_file}"; then
echo "${arch} does not look like a release architecture, trying debian ports"
# non-release architecture; assume debian-ports architecture
if [ "${MIRROR}" = "${DEBIAN_MIRROR}" ]; then
MIRROR="${DEBIAN_PORTS_MIRROR}"
@ -798,10 +797,7 @@ if ! wget -q -O /dev/null "${release_file}"; then
KEYRING="${DEBIAN_PORTS_ARCHIVE_KEYRING}"
fi
packages="debian-ports-archive-keyring,${packages}"
else
echo "Error: ${arch}/${release} not available on mirror ${DEBIAN_MIRROR}"
exit 1
fi
release="${release:-unstable}"
fi
if [ "$interpreter" = "" ] ; then