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

Holger Levsen holger at alioth.debian.org
Fri Apr 17 19:35:52 UTC 2009


Author: holger
Date: 2009-04-17 19:35:52 +0000 (Fri, 17 Apr 2009)
New Revision: 345

Added:
   piatti/home/piupartsm/bin/report_untestable_packages
Modified:
   piatti/home/piupartsm/crontab
Log:
automatically report untestable packages, so that they can be investigated

Added: piatti/home/piupartsm/bin/report_untestable_packages
===================================================================
--- piatti/home/piupartsm/bin/report_untestable_packages	                        (rev 0)
+++ piatti/home/piupartsm/bin/report_untestable_packages	2009-04-17 19:35:52 UTC (rev 345)
@@ -0,0 +1,29 @@
+#!/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
+
+LOGS=$(find /org/piuparts.debian.org/master/*/untestable/ -name "*.log")
+
+if [ "$(wc -l $LOGS)" -gt 0 ] ; then 
+	echo "Untestable packages detected!"
+	echo "This is usually because a package was reserverd with a specific version and then"
+        echo "a higher version became available and the reserved version vanished."
+	echo
+	cat $LOGS
+	echo
+	echo "Please investigate and cleanup."
+fi


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

Modified: piatti/home/piupartsm/crontab
===================================================================
--- piatti/home/piupartsm/crontab	2009-04-17 16:47:28 UTC (rev 344)
+++ piatti/home/piupartsm/crontab	2009-04-17 19:35:52 UTC (rev 345)
@@ -24,4 +24,5 @@
 # monitor for problems once a day
 #
 42 7 * * * /home/piupartsm/bin/detect_stale_mounts
-43 7 * * * /home/piupartsm/bin/detect_network_issues
+44 7 * * * /home/piupartsm/bin/detect_network_issues
+45 7 * * * /home/piupartsm/bin/report_untestable_packages




More information about the Piuparts-commits mailing list