aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-02 13:19:51 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-02 13:19:51 +0000
commit9d0a1c2d30880708e110537967506841fc3ee7d1 (patch)
tree9194d72a9d67e4178f7fa18cb638b59a8743ea83
parent7aeaecbdb609546784a0d5812fc789179eede6cc (diff)
downloadrpmdrake-9d0a1c2d30880708e110537967506841fc3ee7d1.tar
rpmdrake-9d0a1c2d30880708e110537967506841fc3ee7d1.tar.gz
rpmdrake-9d0a1c2d30880708e110537967506841fc3ee7d1.tar.bz2
rpmdrake-9d0a1c2d30880708e110537967506841fc3ee7d1.tar.xz
rpmdrake-9d0a1c2d30880708e110537967506841fc3ee7d1.zip
handle allow-nodeps
-rwxr-xr-xRpmdrake/pkg.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 5a95efd8..d5911fc8 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -647,6 +647,19 @@ my $j;
++$urpm->{logger_id};
push @errors, @l;
}
+ } else {
+ interactive_msg(N("Error"),
+ N("Installation failed:") . "\n" . join("\n", map { "\t$_" } @l) . "\n\n" .
+ N("Try installation without checking dependencies? (y/N) "),
+ yesno => 1
+ ) or ++$nok, next;
+ $urpm->{log}("starting installing packages without deps");
+ @l = urpm::install::install($urpm,
+ $to_remove,
+ \%transaction_sources_install, \%transaction_sources,
+ nodeps => 1,
+ %install_options_common,
+ );
}
}
}