aboutsummaryrefslogtreecommitdiffstats
path: root/URPM/Resolve.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-20 15:07:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-20 15:07:44 +0000
commit704e57da612feb3f9085f43dbdca1f6f6e7bcf2b (patch)
tree38d716aeaa6713f9301f171e9661b553e3af4ddd /URPM/Resolve.pm
parent7e73df928f44bea59b5ae0eb83ec101ff45f5be6 (diff)
downloadperl-URPM-704e57da612feb3f9085f43dbdca1f6f6e7bcf2b.tar
perl-URPM-704e57da612feb3f9085f43dbdca1f6f6e7bcf2b.tar.gz
perl-URPM-704e57da612feb3f9085f43dbdca1f6f6e7bcf2b.tar.bz2
perl-URPM-704e57da612feb3f9085f43dbdca1f6f6e7bcf2b.tar.xz
perl-URPM-704e57da612feb3f9085f43dbdca1f6f6e7bcf2b.zip
- fix bug doing "urpmi kernel-source"
("find" must be seen by perl compiler before using it)
Diffstat (limited to 'URPM/Resolve.pm')
-rw-r--r--URPM/Resolve.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 29c6b5a..c3ca974 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -9,6 +9,11 @@ use Config;
sub min { my $n = shift; $_ < $n and $n = $_ foreach @_; $n }
sub uniq { my %l; $l{$_} = 1 foreach @_; grep { delete $l{$_} } @_ }
+sub find(&@) {
+ my $f = shift;
+ $f->($_) and return $_ foreach @_;
+ undef;
+}
sub property2name {
$_[0] =~ /^([^\s\[]*)/ && $1;
@@ -297,11 +302,6 @@ sub _choose_required {
$pkg;
}
-sub find(&@) {
- my $f = shift;
- $f->($_) and return $_ foreach @_;
- undef;
-}
sub pkg2media {
my ($mediums, $p) = @_;
my $id = $p->id;