[25534] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r25064 - trunk/debathena/config/auto-update/debian

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Wed Mar 16 23:24:34 2011

Date: Wed, 16 Mar 2011 23:24:28 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201103170324.p2H3OSvU006200@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2011-03-16 23:24:28 -0400 (Wed, 16 Mar 2011)
New Revision: 25064

Modified:
   trunk/debathena/config/auto-update/debian/athena-auto-update
Log:
Don't attempt to use curl to verify non-HTTP URI schemes

Modified: trunk/debathena/config/auto-update/debian/athena-auto-update
===================================================================
--- trunk/debathena/config/auto-update/debian/athena-auto-update	2011-03-17 01:51:15 UTC (rev 25063)
+++ trunk/debathena/config/auto-update/debian/athena-auto-update	2011-03-17 03:24:28 UTC (rev 25064)
@@ -236,6 +236,10 @@
 urls=$(cat /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep -v ^# | grep -v ^$ | awk '{print $2}' | sort | uniq)
 failed=""
 for u in $urls; do
+    # We don't (yet) know how to verify other URI schemes
+    if ! echo $u | grep -q "^http:"; then
+	continue
+    fi
     curl -m 60 -sfL -o /dev/null $u
     if [ $? != 0 ]; then
 	if [ -z "$failed" ]; then


home help back first fref pref prev next nref lref last post