소스 검색

Fix test for incorrect packagename for -p option.

Wichert Akkerman 24 년 전
부모
커밋
90cb05905d
1개의 변경된 파일과 3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      scripts/dpkg-gencontrol.pl

+ 3 - 3
scripts/dpkg-gencontrol.pl

@@ -18,8 +18,8 @@ require 'controllib.pl';
 sub usageversion {
     print STDERR
 "Debian dpkg-gencontrol $version. 
-Copyright (C) 1996 Ian Jackson.
-Copyright (C) 2000 Wichert Akkerman.
+Copyright 1996 Ian Jackson.
+Copyright 2000,2002 Wichert Akkerman.
 This is free software; see the GNU General Public Licence version 2 or later
 for copying conditions.  There is NO warranty.
 
@@ -56,7 +56,7 @@ while (@ARGV) {
     $_=shift(@ARGV);
     if (m/^-p([-+0-9a-z.]+)$/) {
         $oppackage= $1;
-    } elsif (m/^-p([-+0-9a-zA-Z.]+)$/) {
+    } elsif (m/^-p/) {
         &usageerr("Illegal package name \`$1'");
     } elsif (m/^-c/) {
         $controlfile= $';