summaryrefslogtreecommitdiff
path: root/dh_python
diff options
context:
space:
mode:
authorjoey <joey>2003-10-13 01:37:14 +0000
committerjoey <joey>2003-10-13 01:37:14 +0000
commit8d285c73f8a1d8f4b632100ce764893f3d704068 (patch)
tree32157a3107409e129074042dc7a75c64c54d7057 /dh_python
parent87c9d162920985cd2ee71b56d9a38aa5bda85093 (diff)
r1611: * dh_install: add --fail-missing option. Closes: #120026
* Fix mispelling in prerm-sgmlcatalog. Closes: #215189
Diffstat (limited to 'dh_python')
-rwxr-xr-xdh_python2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_python b/dh_python
index 5c19ef7..02afea8 100755
--- 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+)*/) {