Skip to content

Commit

Permalink
Update aksetup
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 27, 2015
1 parent 2387348 commit 77254dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions aksetup_helper.py
Expand Up @@ -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()
Expand All @@ -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():
Expand Down
2 changes: 2 additions & 0 deletions configure.py
@@ -1,4 +1,6 @@
#! /usr/bin/env python

from __future__ import absolute_import

from aksetup_helper import configure_frontend
configure_frontend()

0 comments on commit 77254dd

Please sign in to comment.