summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chroot-installation.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh
index 696b8185..f9bb3af0 100755
--- a/bin/chroot-installation.sh
+++ b/bin/chroot-installation.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2012-2016 Holger Levsen <holger@layer-acht.org>
+# Copyright 2012-2017 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2
DEBUG=true
@@ -279,6 +279,19 @@ if [ "$3" != "" ] ; then
esac
fi
+#
+# in sid: find and warn about transitional packages being installed
+#
+if [ "$DISTRO" = "sid" ] ; then
+ ( sudo chroot $CHROOT_TARGET dpkg -l | grep -i "Transitional" 2>/dev/null ) > $TMPFILE
+ if [ -s $TMPFILE ] ; then
+ echo
+ echo "Warning: Transitional packages found:"
+ cat $TMPFILE
+ fi
+ rm -f $TMPFILE 2>/dev/null
+fi
+
echo "Debug: Removing trap."
trap - INT TERM EXIT
echo "Debug: Cleanup fine"