From afb4a20090c97203d165e4236914b7e49f2daa86 Mon Sep 17 00:00:00 2001
From: Travis Cross <tc@traviscross.com>
Date: Wed, 11 Jun 2014 00:55:06 +0000
Subject: [PATCH] Retry for longer on failed cowbuilder operations

There's really nothing to do but retry.
---
 debian/util.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/util.sh b/debian/util.sh
index 14dcddb77d..b01cf0a3e8 100755
--- a/debian/util.sh
+++ b/debian/util.sh
@@ -295,15 +295,15 @@ build_debs () {
     }
     if ! [ -d $cow_img ]; then
       announce "Creating base $distro-$arch image..."
-      local x=5
+      local x=30
       while ! cow --create; do
-        [ $x -lt 1 ] && break; sleep 60; x=$((x-1))
+        [ $x -lt 1 ] && break; sleep 120; x=$((x-1))
       done
     fi
     announce "Updating base $distro-$arch image..."
-    local x=5
+    local x=30
     while ! cow --update; do
-      [ $x -lt 1 ] && break; sleep 60; x=$((x-1))
+      [ $x -lt 1 ] && break; sleep 120; x=$((x-1))
     done
     announce "Building $distro-$arch DEBs from $dsc..."
     if $debug_hook; then