[SCM] Debian Live build scripts branch, master, updated. 1.0.1-1-10-g9776962
Chris Lamb
lamby at debian.org
Sat Sep 27 21:36:28 UTC 2008
The following commit has been merged in the master branch:
commit 97769625c0300b887e4be25d98e6f3529ea27e11
Author: Chris Lamb <lamby at debian.org>
Date: Sat Sep 27 22:33:58 2008 +0100
Create a "missing-source.txt" file containing missing source packages instead of exiting.
Signed-off-by: Chris Lamb <lamby at debian.org>
diff --git a/helpers/lh_source_debian b/helpers/lh_source_debian
index a121cd2..247543e 100755
--- a/helpers/lh_source_debian
+++ b/helpers/lh_source_debian
@@ -92,7 +92,31 @@ EOF
;;
esac
-Chroot "xargs --arg-file=/root/dpkg-selection.txt apt-get ${APT_OPTIONS} --download-only source"
+MISSING=""
+
+grep . chroot/root/dpkg-selection.txt | \
+while read PACKAGE
+do
+ if ! Chroot "apt-get ${APT_OPTIONS} --download-only source ${PACKAGE}"
+ then
+ MISSING="${MISSING} ${PACKAGE}"
+ fi
+done
+
+if [ -n "${MISSING}" ]
+then
+ cat > source/missing-source.txt << EOF
+This file contains the list of binary packages that are installed on this live
+system that do not have a corresponding source package.
+
+EOF
+
+ for PACKAGE in ${MISSING}
+ do
+ Chroot "dpkg -l ${PACKAGE}" | tail -n1 >> source/missing-source.txt
+ done
+fi
+
rm -f chroot/root/dpkg-selection.txt
# Sort sources
--
Debian Live build scripts
More information about the debian-live-changes
mailing list