mirror of
https://github.com/ModOrganizer2/modorganizer-umbrella.git
synced 2026-07-27 13:58:32 -07:00
Debugging
This commit is contained in:
@@ -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
@@ -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]):
|
||||
|
||||
Reference in New Issue
Block a user