Browse Source

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 19 years ago
parent
commit
d131b99fdb
1 changed files with 2 additions and 2 deletions
  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'"), $_));