]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_makeshlibs
r501: * Began work on v4 support (and thus the large version number jump), and it
[debhelper.git] / dh_makeshlibs
index 8f0045a8a0fc18f6adb71cdef3613612ee6b3a17..478c861b001c297833654edbbd304dfe0a7c238b 100755 (executable)
@@ -136,7 +136,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                                # Call isnative becuase it sets $dh{VERSION}
                                # as a side effect.
                                isnative($package);
-                               $deps="$package (>= $dh{VERSION})";
+                               my $version = $dh{VERSION};
+                               # Old compatability levels include the
+                               # debian revision, while new do not.
+                               if (! compat(3)) {
+                                       # Remove debian version, if any.
+                                       $version =~ s/-[^-]+$//;
+                               }
+                               $deps="$package (>= $version)";
                        }
                }
                if (defined($library) && defined($major) && defined($deps) &&