From 4de4f911d26e1d7e6e3a764cb1ee670ff345fee6 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 22 Aug 2024 23:06:16 +0200 Subject: [PATCH] Updating package cache, --- src/loaih/build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/loaih/build.py b/src/loaih/build.py index 93b69d0..227e4f7 100644 --- a/src/loaih/build.py +++ b/src/loaih/build.py @@ -562,13 +562,16 @@ class Build(): if len(debian_packages) != 0: # We need, first, to download those packages. - debs = [ x.split(":")[0] for x in debian_packages ] + debs = [ x.split(':')[0] for x in debian_packages ] downloadpath = os.path.abspath(os.path.join(self.builddir, 'dependencies')) os.makedirs(downloadpath) if self.verbose: print("Downloading missing dependencies, please wait.") + # Updating package cache + subprocess.run(['apt', 'update'], check=True) + # We download the missing dependencies leveraging apt subprocess.run(shlex.split( r"apt download " + " ".join(debs)