[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: lintian{, -info}: Stop importing from Getopt::Long



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit bfb410f2502bc554ccaec4451f35546ac82937d7
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Sep 25 12:44:37 2013 +0200

    lintian{,-info}: Stop importing from Getopt::Long
    
    We mostly do not use the imported stuff anyway and we are fairly
    explicit about (almost) all other imports anyway.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 commands/info    |    4 ++--
 frontend/lintian |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/commands/info b/commands/info
index dc71936..4336bf4 100755
--- a/commands/info
+++ b/commands/info
@@ -23,7 +23,7 @@
 use strict;
 use warnings;
 
-use Getopt::Long;
+use Getopt::Long();
 
 # turn file buffering off:
 STDOUT->autoflush;
@@ -70,7 +70,7 @@ if (compat) {
 }
 
 Getopt::Long::config('bundling', 'no_getopt_compat', 'no_auto_abbrev');
-GetOptions(%opthash) or die("error parsing options\n");
+Getopt::Long::GetOptions(%opthash) or die("error parsing options\n");
 
 # help
 if ($help) {
diff --git a/frontend/lintian b/frontend/lintian
index b5c9082..5222396 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -27,7 +27,7 @@ use warnings;
 use autodie;
 
 use Cwd qw(abs_path);
-use Getopt::Long;
+use Getopt::Long();
 use List::MoreUtils qw(any);
 use POSIX qw(:sys_wait_h);
 
@@ -619,7 +619,7 @@ Getopt::Long::GetOptions(
 Getopt::Long::config('bundling', 'no_getopt_compat', 'no_auto_abbrev');
 
 # process commandline options
-GetOptions(%opthash)
+Getopt::Long::GetOptions(%opthash)
   or die("error parsing options\n");
 
 # root permissions?

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: