]> git.donarmstrong.com Git - wannabuild.git/commitdiff
perlcritic: Code before strictures are enabled
authorHilko Bengen <bengen@debian.org>
Wed, 30 Mar 2011 18:39:47 +0000 (20:39 +0200)
committerAndreas Barth <aba@not.so.argh.org>
Wed, 30 Mar 2011 19:42:07 +0000 (21:42 +0200)
This should not cause any behavioral changes.

bin/wanna-build

index 5a32603271c3deeadef2aa5b3600608a4570f925..952074b55fe3f033c4e8015378c4cf47d4d8d55e 100755 (executable)
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #
+use strict;
+use warnings;
 
 package conf;
+
+use vars qw< $basedir $dbbase $transactlog $mailprog $buildd_domain >;
 # defaults
 $basedir ||= "/var/lib/debbuild";
 $dbbase ||= "build-db";
@@ -34,7 +38,6 @@ die "mailprog binary $conf::mailprog does not exist or isn't executable\n"
        if !-x $conf::mailprog;
 package main;
 
-use strict;
 use POSIX;
 use FileHandle;
 use File::Copy;
@@ -517,7 +520,7 @@ sub process {
                        @ARGV = ( $ARGS[0] );
                        my $pkgs = parse_packages(0);
                        @ARGV = ( $ARGS[3] );
-                       my $pkgs = parse_packages(1);
+                       $pkgs = parse_packages(1);
                        @ARGV = ( $ARGS[1] );
                        parse_quinn_diff(0);
                        @ARGV = ( $ARGS[2] );