Explorar el Código

dpkg-shlibdeps: Fix handling of shlib types

shlibs with no specified type should be valid for all types,
not only for "deb".
Frank Lichtenheld hace 19 años
padre
commit
cff7c6ef26
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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, $., $_));
 	    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)) {
 	    $dep = $4;
 	    last;