mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-12-05 03:10:41 +08:00
fix a bug while reading log
This commit is contained in:
parent
1ef1c3a066
commit
3b0d45dfb1
1 changed files with 3 additions and 3 deletions
6
extra.py
6
extra.py
|
@ -54,9 +54,9 @@ def readpkglog(pkgdirname, update=False):
|
|||
return f"{cwd / logfile} cannot be found"
|
||||
def readmainlog(debug=False):
|
||||
logfile = MAIN_LOGFILE if debug else CONSOLE_LOGFILE
|
||||
if (PKGBUILD_DIR / logfile).exists():
|
||||
if (Path('.') / logfile).exists():
|
||||
logger.debug(f'formatting buildbot{" debug" if debug else ""} logs')
|
||||
return __simpleread(PKGBUILD_DIR / logfile)
|
||||
return __simpleread(Path('.') / logfile)
|
||||
else:
|
||||
logger.debug(f'not found: buildbot{" debug" if debug else ""} log')
|
||||
return f"{PKGBUILD_DIR / logfile} cannot be found"
|
||||
return f"{Path('.') / logfile} cannot be found"
|
||||
|
|
Loading…
Reference in a new issue