tag 391689 + patch
thanks
Hi,
if the package has no versioned dependency on python and contains only
python modules, then it won't have the required python dependency.
I think the attached patch fixes that. At least it works here for the
package I need.
Cheers,
--
Raphaël Hertzog
Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/
--- dh_pysupport 2006-10-09 09:28:59.000000000 +0200
+++ /usr/bin/dh_pysupport 2006-10-09 09:29:39.000000000 +0200
@@ -165,10 +165,12 @@
# The default version is in the
supported versions
if ($minversion ne "None") {
addsubstvar($package,
"python:Depends", "python (>= $minversion)");
+ $have_pydep=1;
}
} elsif ($minversion ne "None") {
# The default version is less than all
supported versions
addsubstvar($package, "python:Depends",
"python (>= $minversion) | python$minversion");
+ $have_pydep=1;
} else {
error("The default python version is
greater than all supported versions");
}
@@ -176,8 +178,8 @@
if ($maxversion ne "None") {
$maxversion =
next_minor_version($maxversion);
addsubstvar($package, "python:Depends",
"python (<< $maxversion)");
+ $have_pydep=1;
}
- $have_pydep=1;
}
$ps_dir =~ s/^$tmp//;
if (! $dh{NOSCRIPTS}) {