aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-18 12:54:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-18 12:54:09 +0000
commitc351bf64418b9d30a16300d74cdc22cab9320685 (patch)
tree1b000cc5a9bccccb488c73dbf9e4c558e677c8f2
parent6d2c5e8b142344fb51ab4d7adc8412deceaeab33 (diff)
downloadperl-URPM-c351bf64418b9d30a16300d74cdc22cab9320685.tar
perl-URPM-c351bf64418b9d30a16300d74cdc22cab9320685.tar.gz
perl-URPM-c351bf64418b9d30a16300d74cdc22cab9320685.tar.bz2
perl-URPM-c351bf64418b9d30a16300d74cdc22cab9320685.tar.xz
perl-URPM-c351bf64418b9d30a16300d74cdc22cab9320685.zip
perl_checker fixes
-rw-r--r--URPM.pm15
-rw-r--r--perl-URPM.spec5
2 files changed, 11 insertions, 9 deletions
diff --git a/URPM.pm b/URPM.pm
index c7c6c09..afe43f4 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -1,14 +1,12 @@
package URPM;
use strict;
-use vars qw($VERSION @ISA);
+use DynaLoader;
-require DynaLoader;
+our @ISA = qw(DynaLoader);
+our $VERSION = '0.81';
-@ISA = qw(DynaLoader);
-$VERSION = '0.81';
-
-bootstrap URPM $VERSION;
+URPM->bootstrap($VERSION);
sub new {
my ($class) = @_;
@@ -20,7 +18,7 @@ sub new {
sub search {
my ($urpm, $name, %options) = @_;
- my $best = undef;
+ my $best;
#- tries other alternative if no strict searching.
unless ($options{strict}) {
@@ -77,7 +75,8 @@ sub traverse {
sub traverse_tag {
my ($urpm, $tag, $names, $callback) = @_;
- my ($count, %names) = (0);
+ my $count = 0;
+ my %names;
if (@{$names || []}) {
if ($tag eq 'name') {
diff --git a/perl-URPM.spec b/perl-URPM.spec
index a3f9b76..cff51c7 100644
--- a/perl-URPM.spec
+++ b/perl-URPM.spec
@@ -1,7 +1,7 @@
%define name perl-URPM
%define real_name URPM
%define version 0.81
-%define release 1mdk
+%define release 2mdk
%{expand:%%define rpm_version %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' rpm)}
@@ -49,6 +49,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Wed Dec 18 2002 Pixel <pixel@mandrakesoft.com> 0.81-2mdk
+- perl_checker fixes
+
* Tue Dec 17 2002 François Pons <fpons@mandrakesoft.com> 0.81-1mdk
- little improve on traverse_tag with tag name whit --env.
- big improve on traverse_tag with tag whatrequires and