mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 13:00:40 +08:00
add missing commands
This commit is contained in:
parent
091b697967
commit
1ef1c3a066
1 changed files with 10 additions and 11 deletions
17
buildbot.py
17
buildbot.py
|
@ -511,14 +511,10 @@ updmgr = updateManager()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def info(retf='human'):
|
def info(human=False):
|
||||||
if retf == 'pkgconfigs':
|
ret = ""
|
||||||
ret = jobsmgr.pkgconfigs
|
if human is False:
|
||||||
elif retf == 'jobsmgr':
|
ret += str(jobsmgr)
|
||||||
ret = jobsmgr
|
|
||||||
else:
|
|
||||||
# retf = 'human'
|
|
||||||
ret = str(jobsmgr)
|
|
||||||
ret += '\nhuman-readable:\n'
|
ret += '\nhuman-readable:\n'
|
||||||
ret += "".join([f"{k} = {jobsmgr.jobs[k]}\n" for k in jobsmgr.jobs])
|
ret += "".join([f"{k} = {jobsmgr.jobs[k]}\n" for k in jobsmgr.jobs])
|
||||||
ret += f"idle: {jobsmgr.idle}"
|
ret += f"idle: {jobsmgr.idle}"
|
||||||
|
@ -558,7 +554,10 @@ def extras(action, pkgname=None):
|
||||||
return extra_readmainlog(debug=True)
|
return extra_readmainlog(debug=True)
|
||||||
elif action == "readpkglog":
|
elif action == "readpkglog":
|
||||||
pkgname = str(pkgname)
|
pkgname = str(pkgname)
|
||||||
return extra_readpkglog(pkgname)
|
return extra_readpkglog(pkgname, update=False)
|
||||||
|
elif action == "readpkgupdlog":
|
||||||
|
pkgname = str(pkgname)
|
||||||
|
return extra_readpkglog(pkgname, update=True)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def run(funcname, args=list(), kwargs=dict()):
|
def run(funcname, args=list(), kwargs=dict()):
|
||||||
|
|
Loading…
Reference in a new issue