forked from Mirror/pmbootstrap
WIP: 2024-06-05: args hacking and more (MR 2252)
Continue removing args and do some other optimisations. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
5bb2390d98
commit
de4c912692
52 changed files with 498 additions and 464 deletions
|
@ -8,7 +8,6 @@ from pmb import commands
|
|||
from pmb.types import PathString
|
||||
from pmb.helpers import run
|
||||
from pmb.core import get_context
|
||||
from pmb import config
|
||||
|
||||
class Log(commands.Command):
|
||||
clear_log: bool
|
||||
|
@ -20,7 +19,7 @@ class Log(commands.Command):
|
|||
|
||||
def run(self):
|
||||
context = get_context()
|
||||
log_testsuite = config.work / "log_testsuite.txt"
|
||||
log_testsuite = context.config.work / "log_testsuite.txt"
|
||||
|
||||
if self.clear_log:
|
||||
run.user(["truncate", "-s", "0", context.log])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue