clean git repo before neos update

pull/256/head
Willem Melching 7 years ago
parent c6df34f55b
commit 53b177b3c1
  1. 3
      selfdrive/manager.py

@ -4,6 +4,7 @@ import sys
import fcntl import fcntl
import errno import errno
import signal import signal
import subprocess
from common.basedir import BASEDIR from common.basedir import BASEDIR
sys.path.append(os.path.join(BASEDIR, "pyextra")) sys.path.append(os.path.join(BASEDIR, "pyextra"))
@ -19,6 +20,8 @@ if __name__ == "__main__":
copyfile(os.path.join(BASEDIR, "scripts", "continue.sh"), "/data/data/com.termux/files/continue.sh") copyfile(os.path.join(BASEDIR, "scripts", "continue.sh"), "/data/data/com.termux/files/continue.sh")
# run the updater # run the updater
print "Starting NEOS updater"
subprocess.check_call(["git", "clean", "-xdf"], cwd=BASEDIR)
os.system(os.path.join(BASEDIR, "installer", "updater", "updater")) os.system(os.path.join(BASEDIR, "installer", "updater", "updater"))
raise Exception("NEOS outdated") raise Exception("NEOS outdated")

Loading…
Cancel
Save