]> www.infradead.org Git - users/willy/linux.git/commitdiff
scripts: sphinx-pre-install: fix release detection for Fedora
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 22 Jun 2025 06:02:40 +0000 (08:02 +0200)
committerJonathan Corbet <corbet@lwn.net>
Wed, 25 Jun 2025 18:22:48 +0000 (12:22 -0600)
Fedora distros are now identified as:

Fedora Linux 42

Fix the way script detects it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/c2a34860bd986cc5f81fc25554ed91629736e995.1750571906.git.mchehab+huawei@kernel.org
scripts/sphinx-pre-install

index 2a311ed001796703ec35240b52864e149a624fc2..3f8d6925e896fe51426f44ea717cdfb684a54b90 100755 (executable)
@@ -413,7 +413,7 @@ sub give_redhat_hints()
        my $old = 0;
        my $rel;
        my $noto_sans_redhat = "google-noto-sans-cjk-ttc-fonts";
-       $rel = $1 if ($system_release =~ /release\s+(\d+)/);
+       $rel = $1 if ($system_release =~ /(release|Linux)\s+(\d+)/);
 
        if (!($system_release =~ /Fedora/)) {
                $map{"virtualenv"} = "python-virtualenv";