[Piuparts-commits] rev 363 - in piatti/home/piupartsm: . bin

Holger Levsen holger at alioth.debian.org
Sun Apr 19 23:01:15 UTC 2009


Author: holger
Date: 2009-04-19 23:01:15 +0000 (Sun, 19 Apr 2009)
New Revision: 363

Added:
   piatti/home/piupartsm/bin/detect_archive_issues
Modified:
   piatti/home/piupartsm/bin/detect_network_issues
   piatti/home/piupartsm/crontab
Log:
notify about broken packages, which are most likely temporarily issues in the archive

Copied: piatti/home/piupartsm/bin/detect_archive_issues (from rev 322, piatti/home/piupartsm/bin/detect_network_issues)
===================================================================
--- piatti/home/piupartsm/bin/detect_archive_issues	                        (rev 0)
+++ piatti/home/piupartsm/bin/detect_archive_issues	2009-04-19 23:01:15 UTC (rev 363)
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+# Copyright 2009 Holger Levsen (holger at layer-acht.org)
+# 
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation; either version 2 of the License, or (at your
+# option) any later version.
+# 
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+MASTER=/org/piuparts.debian.org/master
+DISTROS="sid squeeze"
+
+FILE=`mktemp`
+
+for distro in $DISTROS ; do 
+	rgrep -l "E: Broken packages" $MASTER/$distro/fail >> $FILE
+done
+
+
+if [ -s $FILE ] ; then 
+	echo "Broken packages detected!"
+	echo 
+	echo "Please review the following logfiles and most likely remove them. "
+        echo "Broken packages are usually a temporarily problem in the archive and are"
+        echo "caught by other tools like britney or http://edos.debian.net/edos-debcheck/"
+        echo
+	echo "If is is always the same package failing, it's likely to be an issue in the"
+	echo "package."
+	echo
+	cat $FILE | sed -e "s#/org/piuparts.debian.org/master/#http://piuparts.debian.org/#g"
+	echo
+	cat $FILE | sed -e "s#/org/piuparts.debian.org/master/#less /org/piuparts.debian.org/master/#"
+	echo
+	echo "----------------------------------------------------------------------"
+	echo
+	cat $FILE | sed -e "s#/org/piuparts.debian.org/master/#rm /org/piuparts.debian.org/master/#"
+	echo
+fi
+rm $FILE


Property changes on: piatti/home/piupartsm/bin/detect_archive_issues
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:mergeinfo
   + 

Modified: piatti/home/piupartsm/bin/detect_network_issues
===================================================================
--- piatti/home/piupartsm/bin/detect_network_issues	2009-04-19 11:14:01 UTC (rev 362)
+++ piatti/home/piupartsm/bin/detect_network_issues	2009-04-19 23:01:15 UTC (rev 363)
@@ -22,7 +22,7 @@
 FILE=`mktemp`
 
 for distro in $DISTROS ; do 
-	rgrep -l "Cannot initiate the connection to ftp.fi.debian.org" $MASTER/$distro/fail > $FILE
+	rgrep -l "Cannot initiate the connection to ftp.fi.debian.org" $MASTER/$distro/fail >> $FILE
 done
 
 
@@ -30,7 +30,8 @@
 	echo "Network problems on piatti.debian.org detected!"
 	echo 
 	echo "Please review the following logfiles and most likely remove them." 
-	echo "If it's always the same package failing, it's likely to be an issue in the"
+        echo
+	echo "If it is always the same package failing, it's likely to be an issue in the"
 	echo "package."
 	echo
 	cat $FILE | sed -e "s#/org/piuparts.debian.org/master/#http://piuparts.debian.org/#g"

Modified: piatti/home/piupartsm/crontab
===================================================================
--- piatti/home/piupartsm/crontab	2009-04-19 11:14:01 UTC (rev 362)
+++ piatti/home/piupartsm/crontab	2009-04-19 23:01:15 UTC (rev 363)
@@ -26,4 +26,5 @@
 42 7 * * * /home/piupartsm/bin/detect_stale_mounts
 43 7 * * * /home/piupartsm/bin/detect_tmp_cruft
 44 7 * * * /home/piupartsm/bin/detect_network_issues
-45 7 * * * /home/piupartsm/bin/report_untestable_packages
+45 7 * * * /home/piupartsm/bin/detect_archive_issues
+46 7 * * * /home/piupartsm/bin/report_untestable_packages




More information about the Piuparts-commits mailing list