Re-add guards against bogus 'for' shell expansion.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
Chris Lamb 2008-01-15 19:47:50 +00:00
parent 73acaf73d3
commit c84e3c096b
1 changed files with 21 additions and 12 deletions

View File

@ -254,10 +254,13 @@ if [ "${LH_DEBIAN_INSTALLER}" != "netboot" ]; then
mv chroot/binary.deb ./ mv chroot/binary.deb ./
mv chroot/var/lib/dpkg/status.tmp chroot/var/lib/dpkg/status mv chroot/var/lib/dpkg/status.tmp chroot/var/lib/dpkg/status
for FILE in binary.deb/archives/*.deb if ls binary.deb/archives/*.deb > /dev/null 2>&1
do then
Install_file "${FILE}" "binary/pool/main" for FILE in binary.deb/archives/*.deb
done do
Install_file "${FILE}" "binary/pool/main"
done
fi
fi fi
# Including base debian packages # Including base debian packages
@ -273,15 +276,21 @@ else
fi fi
# Including local debs # Including local debs
for FILE in ../config/binary_local-debs/*_"${LH_ARCHITECTURE}".deb if ls ../config/binary_local-debs/*_"${LH_ARCHITECTURE}".udeb > /dev/null 2>&1
do then
Install_file "${FILE}" "binary/pool/main" for FILE in ../config/binary_local-debs/*_"${LH_ARCHITECTURE}".deb
done do
Install_file "${FILE}" "binary/pool/main"
done
fi
for FILE in ../config/binary_local-debs/*_all.deb if ls ../config/binary_local-debs/*_all.udeb > /dev/null 2>&1
do then
Install_file "${FILE}" "binary/pool/main" for FILE in ../config/binary_local-debs/*_all.deb
done do
Install_file "${FILE}" "binary/pool/main"
done
fi
# Generating deb indices # Generating deb indices
mkdir -p binary/dists/${LH_DISTRIBUTION}/main/binary-${LH_ARCHITECTURE} mkdir -p binary/dists/${LH_DISTRIBUTION}/main/binary-${LH_ARCHITECTURE}