mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-28 05:49:33 +00:00
Add an option --asume-packages-installed
to not try to install packages.
This is different than `--dont-install-packages` that will try to compile the dependencies. `--asumme-packages-installed` will no try to install packages, but will not try either to compile dependencies.
This commit is contained in:
@ -149,6 +149,10 @@ class Builder:
|
||||
packages_to_have = self._get_packages()
|
||||
packages_to_have = remove_duplicates(packages_to_have)
|
||||
|
||||
if option('assume_packages_installed'):
|
||||
print("SKIP, Assume package installed")
|
||||
return
|
||||
|
||||
distname = neutralEnv('distname')
|
||||
if distname in ('fedora', 'redhat', 'centos'):
|
||||
package_installer = 'sudo dnf install {}'
|
||||
|
Reference in New Issue
Block a user