Updating package cache,

This commit is contained in:
emiliano.vavassori 2024-08-22 23:06:16 +02:00
parent 895b0978cf
commit 4de4f911d2
1 changed files with 4 additions and 1 deletions

View File

@ -562,13 +562,16 @@ class Build():
if len(debian_packages) != 0: if len(debian_packages) != 0:
# We need, first, to download those packages. # 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')) downloadpath = os.path.abspath(os.path.join(self.builddir, 'dependencies'))
os.makedirs(downloadpath) os.makedirs(downloadpath)
if self.verbose: if self.verbose:
print("Downloading missing dependencies, please wait.") print("Downloading missing dependencies, please wait.")
# Updating package cache
subprocess.run(['apt', 'update'], check=True)
# We download the missing dependencies leveraging apt # We download the missing dependencies leveraging apt
subprocess.run(shlex.split( subprocess.run(shlex.split(
r"apt download " + " ".join(debs) r"apt download " + " ".join(debs)