aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-01-05 15:58:28 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-01-05 15:58:28 +0000
commit8def605ebe319568d39ae4ad5b18ed37d8dc0a30 (patch)
treef058daa1b1235ccb9c08bdca61975d9ee8d3fa32 /lib
parent7d4fe4aa82dad1282f4c9cf5f644aa0b89866771 (diff)
downloadiurt-8def605ebe319568d39ae4ad5b18ed37d8dc0a30.tar
iurt-8def605ebe319568d39ae4ad5b18ed37d8dc0a30.tar.gz
iurt-8def605ebe319568d39ae4ad5b18ed37d8dc0a30.tar.bz2
iurt-8def605ebe319568d39ae4ad5b18ed37d8dc0a30.tar.xz
iurt-8def605ebe319568d39ae4ad5b18ed37d8dc0a30.zip
Fail when deps would not be installed for a src.rpm
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Urpmi.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm
index b52204b..e460b59 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -423,7 +423,7 @@ sub install_packages {
my $config = $self->{config};
my $cache = $run->{cache};
my $program_name = $run->{program_name};
- my $ok;
+ my $ok = 1;
my @to_install;
plog('DEBUG', "installing @packages");
@@ -532,6 +532,7 @@ sub install_packages {
dump_cache_par($run);
die "FATAL $program_name: Could not have urpmi working !";
}
+ $ok = 0;
}
# <mrl> URPMI saying ok or not, we check this anyway. So that's why
@@ -540,7 +541,7 @@ sub install_packages {
plog(1, "ERROR: rpm-build is missing!");
$ok = 0;
}
- elsif (!@rpm || are_installed($chroot_tmp, @rpm)) {
+ elsif ($ok && (!@rpm || are_installed($chroot_tmp, @rpm))) {
plog("installation successful");
$ok = 1;
}