Debugging

This commit is contained in:
Jeremy Rimpo
2020-09-21 09:38:40 -05:00
parent f4f79516e3
commit 24c546c671
2 changed files with 8 additions and 3 deletions
+5 -2
View File
@@ -18,6 +18,7 @@
import logging
import os
import subprocess
import sys
from config import config
from unibuild.modules.repository import Repository
@@ -156,8 +157,10 @@ class Clone(Repository):
proc = Popen([config['paths']['gh'], "pr", "checkout", self.__gh_pr],
cwd=self._context["build_path"],
env=config['__environment'],
stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
proc.communicate()
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, errs = proc.communicate()
sys.stdout.write(out)
sys.stderr.write(errs)
elif self.__commit is not None:
if self.__shallowclone:
proc = Popen([config['paths']['git'], "checkout","--depth", "1", self.__commit],
+3 -1
View File
@@ -122,7 +122,9 @@ def main():
from subprocess import Popen, PIPE
p = Popen([config['paths']['gh'], 'auth', 'login', '--with-token'], stdout=PIPE, stdin=PIPE, stderr=PIPE, text=True)
p.communicate(input=config['gh_cli_token'])
out, errs = p.communicate(input=config['gh_cli_token'])
sys.stdout.write(out)
sys.stderr.write(errs)
for d in ["download", "build", "progress", "install"]:
if not os.path.exists(config["paths"][d]):