tags 358392 + patch
thanks

Joey,

Here is a patch that fixes this bug.  Please feel free to modify the
patch as necessary as I know virtually nothing about Perl.  I just
wanted to see this annoying bug fixed.

Regards,

-Roberto

-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto
--- dh_python.orig      2006-05-13 21:47:02.201989901 -0400
+++ dh_python   2006-05-13 21:47:07.240231784 -0400
@@ -69,6 +69,10 @@
 
 init();
 
+# Call isnative() so that we can get the package version.
+isnative($dh{MAINPACKAGE});
+my $package_version = $dh{VERSION};
+
 my $python = 'python';
 
 # The current python major version
@@ -134,8 +138,10 @@
                $strong_dep = 1;
                my $pack = $package;
                $pack =~ s/^python/python$python_version/;
+               # Make the dependency "pythonX.Y-foo (= version)"
+               my $ver_pack = $pack . " (= $package_version)";
                if (grep { "$_" eq "$pack" } getpackages()) {
-                       addsubstvar($package, "python:Depends", $pack);
+                       addsubstvar($package, "python:Depends", $ver_pack);
                }
        }
        if ($package !~ /^python[0-9].[0-9]-/) {

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to