summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-07-18 15:47:18 +0000
committerFrancois Pons <fpons@mandriva.com>2002-07-18 15:47:18 +0000
commit89a057b741377ab07e3cd1ff2ef0070622308a8d (patch)
treee391afd325911aea9194bd0df16391e1413bd32d
parent3461242fc9bcc6e46619f08175179ede4900d5fd (diff)
downloaddrakx-89a057b741377ab07e3cd1ff2ef0070622308a8d.tar
drakx-89a057b741377ab07e3cd1ff2ef0070622308a8d.tar.gz
drakx-89a057b741377ab07e3cd1ff2ef0070622308a8d.tar.bz2
drakx-89a057b741377ab07e3cd1ff2ef0070622308a8d.tar.xz
drakx-89a057b741377ab07e3cd1ff2ef0070622308a8d.zip
fixes error if package is not found (regression fixed).
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index bc554e67f..34ecbd629 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -161,7 +161,7 @@ sub setup_postinstall_rpms($$) {
#- compute closure of package that may be copied, use INSTALL category
#- in rpmsrate.
foreach (@{$packages->{needToCopy} || []}) {
- my $p = pkgs::packageByName($packages, $_);
+ my $p = pkgs::packageByName($packages, $_) or next;
pkgs::selectPackage($packages, $p, 0, \%toCopy);
}