Просмотр исходного кода

dpkg-shlibdeps: Fix handling of shlib types

shlibs with no specified type should be valid for all types,
not only for "deb".
Frank Lichtenheld лет назад: 19
Родитель
Сommit
cff7c6ef26
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      scripts/dpkg-shlibdeps.pl

+ 1 - 2
scripts/dpkg-shlibdeps.pl

@@ -336,8 +336,7 @@ sub extract_from_shlibs {
 	    warning(sprintf(_g("shared libs info file \`%s' line %d: bad line \`%s'"), $shlibfile, $., $_));
 	    warning(sprintf(_g("shared libs info file \`%s' line %d: bad line \`%s'"), $shlibfile, $., $_));
 	    next;
 	    next;
 	}
 	}
-	my $type = defined($1) ? $1 : "deb";
-	next if $type ne $packagetype;
+	next if defined($1) and $1 ne $packagetype;
 	if (($libname eq $2) && ($libversion eq $3)) {
 	if (($libname eq $2) && ($libversion eq $3)) {
 	    $dep = $4;
 	    $dep = $4;
 	    last;
 	    last;