From adcac997dd1b526227241c66297612d2df018d56 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sun, 27 Dec 2015 08:03:10 +0100
Subject: [PATCH] Update aksetup

---
 aksetup_helper.py | 8 ++++++--
 configure.py      | 2 ++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/aksetup_helper.py b/aksetup_helper.py
index b7378b5..a3e3afc 100644
--- a/aksetup_helper.py
+++ b/aksetup_helper.py
@@ -703,6 +703,7 @@ def substitute(substitutions, fname):
 def _run_git_command(cmd):
     git_error = None
     from subprocess import Popen, PIPE
+    stdout = None
     try:
         popen = Popen(["git"] + cmd, stdout=PIPE)
         stdout, stderr = popen.communicate()
@@ -722,8 +723,11 @@ def _run_git_command(cmd):
         print(git_error)
         print("Hit Ctrl-C now if you'd like to think about the situation.")
         print(DASH_SEPARATOR)
-        count_down_delay(delay=5)
-    return stdout.decode("utf-8"), git_error
+        count_down_delay(delay=0)
+    if stdout:
+        return stdout.decode("utf-8"), git_error
+    else:
+        return '', "(subprocess call to git did not succeed)"
 
 
 def check_git_submodules():
diff --git a/configure.py b/configure.py
index afe32be..63edd4b 100755
--- a/configure.py
+++ b/configure.py
@@ -1,4 +1,6 @@
 #! /usr/bin/env python
 
+from __future__ import absolute_import
+
 from aksetup_helper import configure_frontend
 configure_frontend()
-- 
GitLab