This commit is contained in:
Marc Beninca 2024-06-10 15:31:15 +02:00
parent adbdf47ef4
commit 88434db29a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
7 changed files with 8 additions and 4 deletions

View file

@ -4,7 +4,6 @@ import os
import fs import fs
if __name__ == "__main__": if __name__ == "__main__":
file_path = os.path.realpath(__file__) file_path = os.path.realpath(__file__)
root_path = os.path.dirname(file_path) root_path = os.path.dirname(file_path)

View file

@ -10,6 +10,5 @@ def need(command: str) -> None:
package = "squashfs-tools" package = "squashfs-tools"
case _: case _:
package = None package = None
if package: if package and package not in packages:
if package not in packages:
packages.append(package) packages.append(package)

View file

@ -1,4 +1,5 @@
import ps import ps
import rwx.cmd import rwx.cmd
rwx.cmd.need("mksquashfs") rwx.cmd.need("mksquashfs")

View file

@ -1,4 +1,5 @@
import cmd import cmd
import ps import ps
cmd.need("debootstrap") cmd.need("debootstrap")

View file

@ -1,4 +1,5 @@
import cmd import cmd
import ps import ps
cmd.need("grub-mkimage") cmd.need("grub-mkimage")

View file

@ -1,5 +1,7 @@
import logging import logging
import sys import sys
def get_file_logger(name: str) -> logging.Logger: def get_file_logger(name: str) -> logging.Logger:
formatter = logging.Formatter( formatter = logging.Formatter(
"%(name)s: %(asctime)s | %(levelname)s | %(filename)s:%(lineno)s | %(process)d >>> %(message)s", "%(name)s: %(asctime)s | %(levelname)s | %(filename)s:%(lineno)s | %(process)d >>> %(message)s",

View file

@ -1,4 +1,5 @@
from os import path from os import path
from sphinx.cmd.build import build_main from sphinx.cmd.build import build_main
from rwx.fs import wipe from rwx.fs import wipe