[CalendarServer-changes] [9815] CalendarServer/trunk/support/build.sh

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 17 14:40:02 PDT 2012


Revision: 9815
          http://trac.calendarserver.org//changeset/9815
Author:   wsanchez at apple.com
Date:     2012-09-17 14:20:31 -0700 (Mon, 17 Sep 2012)
Log Message:
-----------
Failure to download from calendarserver.org needn't be fatal.

Modified Paths:
--------------
    CalendarServer/trunk/support/build.sh

Modified: CalendarServer/trunk/support/build.sh
===================================================================
--- CalendarServer/trunk/support/build.sh	2012-09-17 21:13:15 UTC (rev 9814)
+++ CalendarServer/trunk/support/build.sh	2012-09-17 21:20:31 UTC (rev 9815)
@@ -235,7 +235,7 @@
         # Try getting a copy from calendarserver.org.
         #
         local tmp="$(mktemp "/tmp/${cache_basename}.XXXXX")";
-        curl -L "http://${pkg_host}${pkg_path}/${cache_basename}" -o "${tmp}";
+        curl -L "http://${pkg_host}${pkg_path}/${cache_basename}" -o "${tmp}" || true;
         echo "";
         if [ ! -s "${tmp}" ] || grep '<title>404 Not Found</title>' "${tmp}" > /dev/null; then
           rm -f "${tmp}";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120917/7d60fa5f/attachment-0001.html>


More information about the calendarserver-changes mailing list