flatpak: Start adding script dependencies to make-flatpak-manifest.py

This commit is contained in:
Andrew Hamilton 2019-11-28 21:49:01 +10:00
parent 58403d1466
commit dbe4db26c8

View file

@ -447,7 +447,14 @@ def make_combined_manifest(all_modules):
SUBSTITUTIONS = {"shellcheck": "haskell/ShellCheck",
"pandoc": "haskell/pandoc"}
def install_script_deps():
# cabal-install - cabal
subprocess.run(["sudo", "apt-get", "install", "cabal-install"], check=True)
def main():
install_script_deps()
manifests_dir = os.path.join(os.getcwd(), "manifests-cache")
os.makedirs(manifests_dir, exist_ok=True)
deps = {SUBSTITUTIONS.get(dep, dep) for dep in eris.tools.dependencies()}