瀏覽代碼

Handle argument parsing consistently in all tools

Guillem Jover 16 年之前
父節點
當前提交
c7d2323b66
共有 3 個文件被更改,包括 8 次插入3 次删除
  1. 4 0
      debian/changelog
  2. 2 1
      scripts/dpkg-checkbuilddeps.pl
  3. 2 2
      scripts/dpkg-scanpackages.pl

+ 4 - 0
debian/changelog

@@ -3,6 +3,10 @@ dpkg (1.15.6) UNRELEASED; urgency=low
   [ Raphaël Hertzog ]
   * debian/control: add the accent on my first name
 
+  [ Guillem Jover ]
+  * Handle argument parsing in dpkg-checkbuilddeps and dpkg-scanpackages
+    in a way consistent with the rest of the tools.
+
   [ Updated man page translations ]
   * Swedish (Peter Krefting).
 

+ 2 - 1
scripts/dpkg-checkbuilddeps.pl

@@ -20,7 +20,8 @@
 use strict;
 use warnings;
 
-use Getopt::Long;
+use Getopt::Long qw(:config posix_default bundling no_ignorecase);
+
 use Dpkg;
 use Dpkg::Gettext;
 use Dpkg::ErrorHandling;

+ 2 - 2
scripts/dpkg-scanpackages.pl

@@ -21,6 +21,8 @@ use strict;
 use IO::Handle;
 use IO::File;
 use IO::String;
+use Getopt::Long qw(:config posix_default bundling no_ignorecase);
+
 use Dpkg;
 use Dpkg::Gettext;
 use Dpkg::ErrorHandling;
@@ -39,8 +41,6 @@ my @spuriousover;
 my %packages;
 my %overridden;
 
-use Getopt::Long qw(:config bundling);
-
 my %options = (help            => sub { usage(); exit 0; },
 	       version         => \&version,
 	       type            => undef,