apt-update (0.6) stable; urgency=low
* Check for warnings from apt during the apt-get update phase
+TMPFILE=/etc/apt/update.tmp
+
. /etc/apt/update.conf
if [ "$MAILTO"x = ""x ] ; then
. /etc/apt/update.conf
if [ "$MAILTO"x = ""x ] ; then
else
CHR="chroot $CHROOT"
fi
else
CHR="chroot $CHROOT"
fi
- $CHR apt-get update >/dev/null
+ $CHR apt-get update > $TMPFILE 2>&1
error=$?
if [ $error -ne 0 ] ; then
echo $CHR update failed with error $error
echo
fi
error=$?
if [ $error -ne 0 ] ; then
echo $CHR update failed with error $error
echo
fi
+ # And also check for warnings:
+ grep -q ^W $TMPFILE
+ if [ $? -eq 0 ] ; then
+ echo "$CHR update gave the following warnings:"
+ grep ^W $TMPFILE
+ fi
+ rm -f $TMPFILE
THIS_LIST=`$CHR apt-get -s -u upgrade | awk '/^Inst/ {print $2}'`
if [ "$THIS_LIST"x != ""x ] ; then
THIS_LIST=`$CHR apt-get -s -u upgrade | awk '/^Inst/ {print $2}'`
if [ "$THIS_LIST"x != ""x ] ; then
+apt-update (0.6) stable; urgency=low
+
+ * Check for warnings from apt during the apt-get update phase
+
+ -- Steve McIntyre <steve@einval.com> Sat, 11 Aug 2007 10:10:41 +0100
+
apt-update (0.5) stable; urgency=low
* Clean up the LC_* environment better
apt-update (0.5) stable; urgency=low
* Clean up the LC_* environment better
Section: base
Priority: standard
Architecture: all
Section: base
Priority: standard
Architecture: all
d890efb3264a5a274185afaac973e251 usr/sbin/apt-dist-upgrade
ecba137529ebdecd0e9196e88a6ba3aa usr/share/doc/apt-update/copyright
d890efb3264a5a274185afaac973e251 usr/sbin/apt-dist-upgrade
ecba137529ebdecd0e9196e88a6ba3aa usr/share/doc/apt-update/copyright
-2c7c525469b52c9fbd532e0c83a5b3f2 usr/share/doc/apt-update/changelog.gz
+27e6c2ee24529b2ae8574a4e8d6e7b00 usr/share/doc/apt-update/changelog.gz
+TMPFILE=/etc/apt/update.tmp
+
. /etc/apt/update.conf
if [ "$MAILTO"x = ""x ] ; then
. /etc/apt/update.conf
if [ "$MAILTO"x = ""x ] ; then
echo $CHR update failed with error $error
echo
fi
echo $CHR update failed with error $error
echo
fi
+ # And also check for warnings:
+ grep -q ^W $TMPFILE
+ if [ $? -eq 0 ] ; then
+ echo "$CHR update gave the following warnings:"
+ grep ^W $TMPFILE
+ fi
+ rm -f $TMPFILE
THIS_LIST=`$CHR apt-get -s -u upgrade | awk '/^Inst/ {print $2}'`
if [ "$THIS_LIST"x != ""x ] ; then
THIS_LIST=`$CHR apt-get -s -u upgrade | awk '/^Inst/ {print $2}'`
if [ "$THIS_LIST"x != ""x ] ; then