[Piuparts-commits] [SCM] piuparts git repository branch, piatti.git, updated. f3d478e5f291baaf9e84d1982ca5e2e6b353a232

Andreas Beckmann debian at abeckmann.de
Sun Apr 1 08:47:27 UTC 2012


The following commit has been merged in the piatti.git branch:
commit 9554cae7cd5f2b1830d47b9c848ad725308087f5
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Sun Feb 19 15:48:54 2012 +0100

    network issue: Unable to connect to $mirror
    
    If the mirror is not reachable while fetching .debs, we get
      Failed to fetch.*Unable to connect to.*
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/home/piupartsm/bin/detect_network_issues b/home/piupartsm/bin/detect_network_issues
index 35d7687..758e0dd 100755
--- a/home/piupartsm/bin/detect_network_issues
+++ b/home/piupartsm/bin/detect_network_issues
@@ -50,16 +50,19 @@ for SECTION in $SECTIONS ; do
 	rgrep -l "Hash Sum mismatch" $MASTER/$SECTION/fail >> $FILE
 	rgrep -l -e "Failed to fetch.*Could not resolve" $MASTER/$SECTION/fail >> $FILE
 	rgrep -l -e "Failed to fetch.*Something wicked happened resolving" $MASTER/$SECTION/fail >> $FILE
+	rgrep -l -e "Failed to fetch.*Unable to connect to" $MASTER/$SECTION/fail >> $FILE
 	rgrep -l "Some index files failed to download, they have been ignored, or old ones used instead." $MASTER/$SECTION/fail >> $FILE
 	rgrep -l "Some index files failed to download. They have been ignored, or old ones used instead." $MASTER/$SECTION/fail >> $FILE
 	rgrep -l -e "W: GPG error: .* Release: The following signatures were invalid: BADSIG" $MASTER/$SECTION/fail >> $FILE
 done
 if [ -s $FILE ] ; then 
 	echo "Network problems on detected!"
-	echo "(By grep'ing for 'Cannot initiate the connection to', 'Failed to"
-	echo "fetch.*Could not resolve', 'Failed to fetch.*Something wicked"
-	echo " happened resolving', 'Some index files failed to download',"
-	echo "'Hash Sum mismatch', and 'The following signatures were invalid'"
+	echo "(By grep'ing for"
+	echo "    'Cannot initiate the connection to',"
+	echo "    'Failed to fetch',"
+	echo "    'Some index files failed to download',"
+	echo "    'Hash Sum mismatch',"
+	echo "    'The following signatures were invalid'"
 	echo "in failed logs.)"
 	echo 
 	echo "The following logfiles have been deleted:" 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list