summaryrefslogtreecommitdiff
path: root/dh_makeshlibs
diff options
context:
space:
mode:
authorjoey <joey>2000-11-12 21:31:01 +0000
committerjoey <joey>2000-11-12 21:31:01 +0000
commited032dcadfb52bed9bfc5fe2e4dfde1f8e034b34 (patch)
treeb80fea8d9d5bfbb349e181e261da66de7d00368c /dh_makeshlibs
parent2aa8e7bbb662f3ea43a03441dbcc6c7a3acb91a5 (diff)
downloaddebhelper-ed032dcadfb52bed9bfc5fe2e4dfde1f8e034b34.tar.gz
r388: * Ok, I tihnk we have a db3 fix that will really work now.
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-xdh_makeshlibs7
1 files changed, 6 insertions, 1 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs
index a9770717..6c708e86 100755
--- a/dh_makeshlibs
+++ b/dh_makeshlibs
@@ -15,7 +15,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
open (FIND, "find $TMP -xtype f -name '*.so.*' |");
while (<FIND>) {
chomp;
- ($library, $major)=m#.*/(.*)\.so\.(\d*)\.?#;
+ # The second evil regexp is for db3, whose author should
+ # be shot.
+ if (m#.*/(.*)\.so\.(\d*)\.?# || m#.*/(.*)-(\S+)\.so$#) {
+ $library = $1;
+ $major = $2;
+ }
if (defined($dh{M_PARAMS}) && $dh{M_PARAMS} ne '') {
$major=$dh{M_PARAMS};
}