mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
Mark dependencies to be skipped even if we skip the packages installation.
We have to loop over the dependencies and their packages to know which dependency we may skip. So we must not skip the install_packages step too early.
This commit is contained in:
@ -302,10 +302,6 @@ class BuildEnv:
|
||||
|
||||
def install_packages(self):
|
||||
autoskip_file = pj(self.build_dir, ".install_packages_ok")
|
||||
if os.path.exists(autoskip_file):
|
||||
print("SKIP")
|
||||
return
|
||||
|
||||
if self.distname in ('fedora', 'redhat', 'centos'):
|
||||
package_installer = 'dnf'
|
||||
elif self.distname in ('debian', 'ubuntu'):
|
||||
@ -321,6 +317,9 @@ class BuildEnv:
|
||||
if packages:
|
||||
packages_list += packages
|
||||
dep.skip = True
|
||||
if os.path.exists(autoskip_file):
|
||||
print("SKIP")
|
||||
return
|
||||
if packages_list:
|
||||
command = "sudo {package_installer} install {packages_list}".format(
|
||||
package_installer = package_installer,
|
||||
|
Reference in New Issue
Block a user