Multiple changes

Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-03-20 22:25:36 +01:00
parent bf9a0a96c1
commit 51625e61f9
20 changed files with 78 additions and 2423 deletions

View File

@ -9,6 +9,7 @@ import re
import shutil
import warnings
import platform
import apt
log = logging.getLogger(__name__)
@ -31,6 +32,18 @@ def install_file(source_filename, dest_filename):
def install_system_files():
f = open("apt_packages.txt", "r")
cache = apt.cache.Cache()
cache.update()
cache.open()
for x in f:
pkg = cache[x]
if pkg.is_installed:
continue
else:
pkg.mark_install()
f.close()
setup_path = os.path.dirname(__file__)
if platform.machine().startswith('arm'):
data_path = os.path.join(setup_path, "builder/data/32bit")