]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_python
r1611: * dh_install: add --fail-missing option. Closes: #120026
[debhelper.git] / dh_python
index 5c19ef7d4acbe3f9433600b02296a6fc1c9eb81d..02afea89a7fdfa20be35ecdf8d0342ebee5253f1 100755 (executable)
--- a/dh_python
+++ b/dh_python
@@ -75,7 +75,7 @@ my $python = 'python';
 # The current python major version
 my $python_major;
 my $python_version = `$python -V 2>&1`;
-if ("$python_version" eq "") {
+if (! defined $python_version || $python_version eq "") {
        error("Python is not installed, aborting. (Probably forgot to Build-Depend on python.)");
 }
 elsif ($python_version =~ m/^Python\s+(\d+)\.(\d+)(\.\d+)*/) {