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
if __name__ == "__main__":
file_path = os.path.realpath(__file__)
root_path = os.path.dirname(file_path)

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,7 @@
import logging
import sys
def get_file_logger(name: str) -> logging.Logger:
formatter = logging.Formatter(
"%(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 sphinx.cmd.build import build_main
from rwx.fs import wipe