summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-11 20:12:11 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-11 20:12:11 +0000
commite3c239b2511b4c32b1f085547f17cc66ec812f11 (patch)
treea197cf8625e5e83b4a4309a65a53c58e054e28de
parent51243f2d95e82e2b37da435e878cdfdec64f7c3d (diff)
downloaddrakx-e3c239b2511b4c32b1f085547f17cc66ec812f11.tar
drakx-e3c239b2511b4c32b1f085547f17cc66ec812f11.tar.gz
drakx-e3c239b2511b4c32b1f085547f17cc66ec812f11.tar.bz2
drakx-e3c239b2511b4c32b1f085547f17cc66ec812f11.tar.xz
drakx-e3c239b2511b4c32b1f085547f17cc66ec812f11.zip
check that required files are available once the package is installed
-rw-r--r--perl-install/network/thirdparty.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/network/thirdparty.pm b/perl-install/network/thirdparty.pm
index 5426eab98..2e4d32f3b 100644
--- a/perl-install/network/thirdparty.pm
+++ b/perl-install/network/thirdparty.pm
@@ -438,8 +438,11 @@ sub install_packages {
if (my @packages = $get_method->('get_packages')->($name)) {
log::explanations("Installing thirdparty packages ($option) " . join(', ', @packages));
- $in->do_pkgs->install(@packages) and next;
- warn_not_installed($in, @packages);
+ if (!$in->do_pkgs->install(@packages)) {
+ warn_not_installed($in, @packages);
+ } elsif ($get_method->('check_installed')->()) {
+ next;
+ }
}
log::explanations("Thirdparty package $name ($option) is required but not available");