]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scripts/sphinx-pre-install: fix latexmk dependencies
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 13 Jul 2019 11:19:44 +0000 (08:19 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 17 Jul 2019 09:57:52 +0000 (06:57 -0300)
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>
scripts/sphinx-pre-install

index 33efadd6c0b69004c46058557d3889a9e9d17779..8dc13fe95ffe87a9687e264d9fbfa26c86a903a2 100755 (executable)
@@ -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);