parent
532144ce66
commit
feec626274
|
@ -52,14 +52,10 @@ Chroot chroot "dpkg --get-selections" | awk '{ print $1 }' > source-selection.tx
|
||||||
echo "${LB_BOOTLOADERS}" | \
|
echo "${LB_BOOTLOADERS}" | \
|
||||||
while IFS="," read -r BOOTLOADER
|
while IFS="," read -r BOOTLOADER
|
||||||
do
|
do
|
||||||
cat >> source-selection.txt << EOF
|
echo "${BOOTLOADER}" >> source-selection.txt
|
||||||
${BOOTLOADER}
|
|
||||||
EOF
|
|
||||||
done
|
done
|
||||||
|
|
||||||
cat >> source-selection.txt << EOF
|
echo "live-build" >> source-selection.txt
|
||||||
live-build
|
|
||||||
EOF
|
|
||||||
|
|
||||||
case "${LB_BINARY_IMAGES}" in
|
case "${LB_BINARY_IMAGES}" in
|
||||||
iso*)
|
iso*)
|
||||||
|
@ -89,12 +85,9 @@ esac
|
||||||
|
|
||||||
case "${LB_ARCHITECTURES}" in
|
case "${LB_ARCHITECTURES}" in
|
||||||
amd64|i386)
|
amd64|i386)
|
||||||
|
echo "mtools" >> source-selection.txt
|
||||||
cat >> source-selection.txt << EOF
|
echo "syslinux" >> source-selection.txt
|
||||||
mtools
|
echo "grub" >> source-selection.txt
|
||||||
syslinux
|
|
||||||
grub
|
|
||||||
EOF
|
|
||||||
|
|
||||||
if [ "${LB_MEMTEST}" != "none" ]; then
|
if [ "${LB_MEMTEST}" != "none" ]; then
|
||||||
echo "${LB_MEMTEST}" >> source-selection.txt
|
echo "${LB_MEMTEST}" >> source-selection.txt
|
||||||
|
@ -123,7 +116,7 @@ case "${LB_MODE}" in
|
||||||
then
|
then
|
||||||
cp chroot/etc/apt/sources.list.d/progress-linux.list chroot/etc/apt/sources.list.d/progress-linux.list.orig
|
cp chroot/etc/apt/sources.list.d/progress-linux.list chroot/etc/apt/sources.list.d/progress-linux.list.orig
|
||||||
|
|
||||||
while read _LINE
|
while read -r _LINE
|
||||||
do
|
do
|
||||||
if echo "${_LINE}" | grep -qs ${LB_DISTRIBUTION_BINARY}-backports
|
if echo "${_LINE}" | grep -qs ${LB_DISTRIBUTION_BINARY}-backports
|
||||||
then
|
then
|
||||||
|
@ -139,21 +132,23 @@ case "${LB_MODE}" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
MISSING=""
|
MISSING=""
|
||||||
|
while read -r PACKAGE
|
||||||
grep . source-selection.txt | \
|
|
||||||
while read PACKAGE
|
|
||||||
do
|
do
|
||||||
if ! Chroot chroot "apt-get ${APT_OPTIONS} --download-only source ${PACKAGE}"
|
if ! Chroot chroot "apt-get ${APT_OPTIONS} --download-only source ${PACKAGE}"
|
||||||
then
|
then
|
||||||
MISSING="${MISSING} ${PACKAGE}"
|
MISSING="${MISSING} ${PACKAGE}"
|
||||||
fi
|
fi
|
||||||
done
|
done < source-selection.txt
|
||||||
|
rm -f source-selection.txt
|
||||||
|
|
||||||
if [ -n "${MISSING}" ]
|
if [ -n "${MISSING}" ]
|
||||||
then
|
then
|
||||||
cat > source/missing-source.txt << EOF
|
cat > source/missing-source.txt << EOF
|
||||||
This file contains the list of binary packages that are installed on this live
|
This file contains the list of binary packages that are installed on the "live"
|
||||||
system that do not have a corresponding source package.
|
system (to which this source disc is a companion) for which a corresponding
|
||||||
|
source package is not included on this disc. This may be because the binary
|
||||||
|
package does not have a corresponding source package, or because the version of
|
||||||
|
the source package available was not the same as that of the binary.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
@ -163,8 +158,6 @@ EOF
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f source-selection.txt
|
|
||||||
|
|
||||||
# Sort sources
|
# Sort sources
|
||||||
for DSC in chroot/*.dsc
|
for DSC in chroot/*.dsc
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue