[SCM] Debian package checker branch, master, updated. 2.0.0-rc1-14-g2d55c59
The following commit has been merged in the master branch:
commit 2d55c59b517155d4bb23368178a2a686bf3fa640
Author: Frank Lichtenheld <djpig@debian.org>
Date: Sun Sep 21 16:23:46 2008 +0200
checks/debhelper: Move some code outside of run()
No need for code that only needs to be run once to be inside of
run().
diff --git a/checks/debhelper b/checks/debhelper
index 7490825..6dc81b5 100644
--- a/checks/debhelper
+++ b/checks/debhelper
@@ -20,29 +20,11 @@
package Lintian::debhelper;
use strict;
-use Tags;
-use Util;
-
-sub run {
-
-my $pkg = shift;
-my $type = shift;
-my $info = shift;
use lib "$ENV{'LINTIAN_ROOT'}/lib";
use Dep;
-
-my %commands;
-
-my $seencommand = '';
-my $needbuilddepends = '';
-my $needtomodifyscripts = '';
-my $needversiondepends = '';
-my $seenversiondepends = '0';
-my $compat = '';
-my $usescdbs = '';
-my $seendhpython = '';
-my $usescdbspython = '';
+use Tags;
+use Util;
# If there is no debian/compat file present but cdbs is being used, cdbs will
# create one automatically. Currently it always uses compatibility level 5.
@@ -56,6 +38,7 @@ my $cdbscompat = 5;
# commands can be found by "grep -l autoscript /usr/bin/dh_*", but I'll
# hardcode them here.
+my %commands;
map { $commands{$_}=1 } qw(dh_desktop
dh_gconf
dh_icons
@@ -92,6 +75,23 @@ my %versions
dh_lintian => '6.0.7~',
dh => '7');
+
+sub run {
+
+my $pkg = shift;
+my $type = shift;
+my $info = shift;
+
+my $seencommand = '';
+my $needbuilddepends = '';
+my $needtomodifyscripts = '';
+my $needversiondepends = '';
+my $seenversiondepends = '0';
+my $compat = '';
+my $usescdbs = '';
+my $seendhpython = '';
+my $usescdbspython = '';
+
open(RULES, '<', "debfiles/rules") or fail("cannot read debian/rules: $!");
my $dhcompatvalue;
my @versioncheck;
--
Debian package checker
Reply to: