]> www.infradead.org Git - users/hch/misc.git/commitdiff
scripts: sphinx-pre-install: fix version check for Fedora
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Aug 2025 15:52:18 +0000 (17:52 +0200)
committerJonathan Corbet <corbet@lwn.net>
Wed, 13 Aug 2025 16:19:15 +0000 (10:19 -0600)
The script is now picking the wrong version. Fix 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/9d1e5c9906534e2bae586f891770066346463146.1754992972.git.mchehab+huawei@kernel.org
scripts/sphinx-pre-install

index 3f8d6925e896fe51426f44ea717cdfb684a54b90..07234d482fa8b82cbeb59b19b999861bb00d79c5 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|Linux)\s+(\d+)/);
+       $rel = $2 if ($system_release =~ /(release|Linux)\s+(\d+)/);
 
        if (!($system_release =~ /Fedora/)) {
                $map{"virtualenv"} = "python-virtualenv";