From 416971160ec60750304a3a11c7e3de1cf5503bfd Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 11 Apr 2019 20:40:26 +0200 Subject: Doing live tests --- archinstall.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/archinstall.py b/archinstall.py index 23d39d02..a4d36a5a 100644 --- a/archinstall.py +++ b/archinstall.py @@ -165,7 +165,8 @@ class sys_command(): yield output - os.waitpid(self.pid, 0) + x = os.waitpid(self.pid, 0) + print('Exited with:', x) # def sys_command(cmd, echo=False, opts=None, *args, **kwargs): # if not opts: opts = {} @@ -198,7 +199,7 @@ def update_git(): os.remove('/root/archinstall/archinstall.py') os.remove('/root/archinstall/README.md') - output = b''.join(sys_command('(cd /root/archinstall; git update)').exec()) # git reset --hard origin/ + output = b''.join(sys_command('(cd /root/archinstall; git update)').exec()) # git reset --hard origin/ / git fetch --all if b'error:' in output: print('[N] Could not update git source for some reason.') @@ -206,6 +207,7 @@ def update_git(): # b'From github.com:Torxed/archinstall\n 339d687..80b97f3 master -> origin/master\nUpdating 339d687..80b97f3\nFast-forward\n README.md | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n' tmp = re.findall(b'[0-9]+ file changed', output) + print(tmp) if len(tmp): num_changes = int(tmp[0].split(b' ',1)[0]) if(num_changes): -- cgit v1.2.3-70-g09d2