Multiple changes

Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-03-20 22:32:04 +01:00
parent 51625e61f9
commit 5116bac2a7

View File

@ -9,7 +9,6 @@ import re
import shutil
import warnings
import platform
import apt
log = logging.getLogger(__name__)
@ -32,18 +31,6 @@ 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")