revision 1.17
date: 2007-07-26 11:58:34 +0200; author: djpig; state: Exp; lines: +9 -1
Initialize %stats hash to avoid perl warnings
----------------------------
revision 1.16
date: 2007-07-23 17:59:14 +0200; author: djpig; state: Exp; lines: +1 -1
The version number can be just 0, don't fall over that
'help' => \$help,
);
-my (%src_packages, %bin_packages, %cache, %stats);
+my (%src_packages, %bin_packages, %cache);
+
+my %stats = (
+ src_pkgs => 0,
+ src_cache => 0,
+ already_extracted => 0,
+ bin_pkgs => 0,
+ bin_cache => 0,
+ );
Getopt::Long::config('no_getopt_compat', 'no_auto_abbrev');
dsc => $dscname,
};
- unless( $pkg_data->{src_name} && $pkg_data->{src_version}
+ unless( $pkg_data->{src_name} && defined($pkg_data->{src_version})
&& $pkg_data->{dsc} ) {
use Data::Dumper;
do_error( "something fishy happened.\n", Dumper( $pkg_data ) );