Updating package cache,
This commit is contained in:
parent
895b0978cf
commit
4de4f911d2
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue