Tweak ordering of snapshot URLs
Put snapshot.d.o last in the list in jigdo files, to reduce load on the service.
This commit is contained in:
parent
20b544918d
commit
9fa12704bf
|
@ -18,6 +18,10 @@ debian-cd (3.1.24) UNRELEASED; urgency=medium
|
||||||
* Switch bootloader from silo to grub-ieee1275 on sparc
|
* Switch bootloader from silo to grub-ieee1275 on sparc
|
||||||
* Switch bootloader from silo to grub-ieee1275 on sparc64
|
* Switch bootloader from silo to grub-ieee1275 on sparc64
|
||||||
|
|
||||||
|
[ Steve McIntyre ]
|
||||||
|
* Tweak ordering of snapshot URLs - put snapshot.d.o last in the list in
|
||||||
|
jigdo files, to reduce load on the service.
|
||||||
|
|
||||||
-- Holger Levsen <holger@debian.org> Wed, 20 Feb 2019 14:12:16 +0100
|
-- Holger Levsen <holger@debian.org> Wed, 20 Feb 2019 14:12:16 +0100
|
||||||
|
|
||||||
debian-cd (3.1.23) unstable; urgency=medium
|
debian-cd (3.1.23) unstable; urgency=medium
|
||||||
|
|
|
@ -40,24 +40,24 @@ cat $jigdo | awk -v ISO="$iso" -v TEMPLATE="$template" -v DISCINFO="$discinfo" -
|
||||||
' > $jigdo.1
|
' > $jigdo.1
|
||||||
mv -f $jigdo.1 $jigdo
|
mv -f $jigdo.1 $jigdo
|
||||||
|
|
||||||
# Snapshot URL
|
|
||||||
if [ "$snapurl"x != ""x ] ; then
|
|
||||||
echo "$snapurl" >> $jigdo
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If some fallbacks were specified, output a servers section with the
|
# If some fallbacks were specified, output a servers section with the
|
||||||
# URLs. The entries of the variable are expected to be already of the
|
# URLs. The entries of the variable are expected to be already of the
|
||||||
# form "Label=http://some.url/"
|
# form "Label=http://some.url/"
|
||||||
if test -n "$JIGDOFALLBACKURLS"; then
|
if test -n "$JIGDOFALLBACKURLS"; then
|
||||||
for url in "$JIGDOFALLBACKURLS"
|
for url in "$JIGDOFALLBACKURLS"
|
||||||
do
|
do
|
||||||
# The --try-last switch assigns a lower priority to the URL,
|
echo "$url" >> $jigdo
|
||||||
# so it will only be used if other server entries (without the
|
|
||||||
# --try-last) have already been tried without success.
|
|
||||||
echo "$url --try-last" >> $jigdo
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Snapshot URL - use last
|
||||||
|
if [ "$snapurl"x != ""x ] ; then
|
||||||
|
# The --try-last switch assigns a lower priority to the URL,
|
||||||
|
# so it will only be used if other server entries (without the
|
||||||
|
# --try-last) have already been tried without success.
|
||||||
|
echo "$snapurl --try-last" >> $jigdo
|
||||||
|
fi
|
||||||
|
|
||||||
# Create a snapshot tree if we've been told where to create one
|
# Create a snapshot tree if we've been told where to create one
|
||||||
if test -n "$JIGDOFALLBACKPATH"; then
|
if test -n "$JIGDOFALLBACKPATH"; then
|
||||||
echo "Creating snapshot tree:"
|
echo "Creating snapshot tree:"
|
||||||
|
|
Loading…
Reference in New Issue