From 7ef3d1c5f45b35987f6374032f73a7cd0390bfd8 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 24 May 2018 00:03:09 +0200 Subject: [PATCH] clean git repo before neos update --- selfdrive/manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/manager.py b/selfdrive/manager.py index fd79b2006d51c0..4c95bc06f675bb 100755 --- a/selfdrive/manager.py +++ b/selfdrive/manager.py @@ -4,6 +4,7 @@ import fcntl import errno import signal +import subprocess from common.basedir import BASEDIR sys.path.append(os.path.join(BASEDIR, "pyextra")) @@ -19,6 +20,8 @@ copyfile(os.path.join(BASEDIR, "scripts", "continue.sh"), "/data/data/com.termux/files/continue.sh") # run the updater + print "Starting NEOS updater" + subprocess.check_call(["git", "clean", "-xdf"], cwd=BASEDIR) os.system(os.path.join(BASEDIR, "installer", "updater", "updater")) raise Exception("NEOS outdated")