scripts/sphinx-pre-install: fix latexmk dependencies

The name of the package with carries latexmk is different
on two distros:

- On OpenSUSE, latexmk is packaged as "texlive-latexmk-bin"
- On Mageia, latexmk is packaged at "texlive-collection-basic"

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Mauro Carvalho Chehab 2019-07-13 08:19:44 -03:00
parent 56e5a63392
commit 353290a9eb
1 changed files with 4 additions and 0 deletions

View File

@ -454,6 +454,8 @@ sub give_opensuse_hints()
"texlive-zapfding",
);
$map{"latexmk"} = "texlive-latexmk-bin";
check_rpm_missing(\@suse_tex_pkgs, 2) if ($pdf);
check_missing_tex(2) if ($pdf);
check_missing(\%map);
@ -479,6 +481,8 @@ sub give_mageia_hints()
"texlive-fontsextra",
);
$map{"latexmk"} = "texlive-collection-basic";
check_rpm_missing(\@tex_pkgs, 2) if ($pdf);
check_missing(\%map);