Explorar el Código

dpkg-shlibdeps: Fix two option regexps

regexps -x and -v were missing the starting ^ which could
make them match random other stuff, e.g. filenames.
Frank Lichtenheld hace 19 años
padre
commit
d131b99fdb
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      scripts/dpkg-shlibdeps.pl

+ 2 - 2
scripts/dpkg-shlibdeps.pl

@@ -69,9 +69,9 @@ foreach (@ARGV) {
 	$ignore_missing_info = 1;
     } elsif (m/^-t(.*)$/) {
 	$packagetype = $1;
-    } elsif (m/-v$/) {
+    } elsif (m/^-v$/) {
 	$debug = 1;
-    } elsif (m/-x(.*)$/) {
+    } elsif (m/^-x(.*)$/) {
 	push @exclude, $1;
     } elsif (m/^-/) {
 	usageerr(sprintf(_g("unknown option \`%s'"), $_));