BACKPORT: Make grab_md5 more robust
This commit is contained in:
parent
dae6a1e839
commit
06a611d49d
|
@ -58,6 +58,7 @@ debian-cd (3.1.6) UNRELEASED-backport; urgency=low
|
|||
* Don't exclude all the udebs for s390. Some users really do need them
|
||||
(loading from a CD/DVD used over the network). Closes: Bug #673576
|
||||
* Explicitly add s390-tools and sysconfig-hardware for s390.
|
||||
* Make grab_md5 more robust
|
||||
|
||||
-- Raphaël Hertzog <hertzog@debian.org> Fri, 04 Feb 2011 09:59:21 +0100
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
# Parse Packages and Sources files out of a mirror and pre-process
|
||||
# them into a single list ready for mkisofs to check later
|
||||
|
||||
set -e
|
||||
|
||||
MIRROR=$1
|
||||
ARCHES="$2"
|
||||
CODENAME=$3
|
||||
|
@ -19,6 +21,13 @@ do
|
|||
LOCATIONS="$MIRROR/dists/$CODENAME/ $MIRROR/dists/$DI_CODENAME/"
|
||||
echo "Looking in $LOCATIONS"
|
||||
|
||||
for LOCATION in $LOCATIONS; do
|
||||
if [ ! -d $LOCATION ]; then
|
||||
echo "Error: $LOCATION is not a directory"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
case $ARCH in
|
||||
source)
|
||||
FILES=`find $LOCATIONS -name Sources.gz`
|
||||
|
|
Loading…
Reference in New Issue