]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - scripts/sphinx-pre-install
Merge tag 'block-5.12-2021-03-05' of git://git.kernel.dk/linux-block
[mirror_ubuntu-jammy-kernel.git] / scripts / sphinx-pre-install
index 828a8615a9181ccdb4a9883df20ea58c9762984d..b5f9fd5b28808868bccca9818460674ee6549785 100755 (executable)
@@ -728,8 +728,8 @@ sub check_needs()
                                        $need_virtualenv = 1;
                                }
                                if ($1 < 3) {
-                                       # Complain if it finds python2 (or worse)
-                                       printf "Warning: python$1 support is deprecated. Use it with caution!\n";
+                                       # Fail if it finds python2 (or worse)
+                                       die "Python 3 is required to build the kernel docs\n";
                                }
                        } else {
                                die "Warning: couldn't identify $python_cmd version!";