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)