summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xurpmi20
1 files changed, 6 insertions, 14 deletions
diff --git a/urpmi b/urpmi
index e9ea461b..d23aac87 100755
--- a/urpmi
+++ b/urpmi
@@ -357,27 +357,19 @@ if (@rpms_install || @rpms_upgrade) {
}
} else {
if (@rpms_install) {
- system("rpm", "-i$rpm_opt", @rpms_install);
+ system("rpm", "-i$rpm_opt", "--nodeps", @rpms_install);
if (@$_) {
message(_("Installation failed"));
m|^/| && !-e $_ and exit 2 foreach @rpms_install; #- missing local file
+ $auto and exit 1; #- if auto has been set, avoid asking user.
$noexpr = _("Nn");
$yesexpr = _("Yy");
- print SAVEOUT _("Try installation without checking dependencies? (y/N) ");
- $auto and exit 1; #- if auto has been set, avoid asking user.
+ print SAVEOUT _("Try installation even more strongly (--force)? (y/N) ");
$force or <STDIN> =~ /[$yesexpr]/ or exit 1;
- $urpm->{log}("starting installing packages without deps");
- system("rpm", "-i$rpm_opt", "--nodeps", @rpms_install);
-
- if ($?) {
- message(_("Installation failed"));
- print SAVEOUT _("Try installation even more strongly (--force)? (y/N) ");
- $force or <STDIN> =~ /[$yesexpr]/ or exit 1;
- $urpm->{log}("starting force installing packages without deps");
- system("rpm", "-i$rpm_opt", "--nodeps", "--force", @rpms_install);
- }
+ $urpm->{log}("starting force installing packages without deps");
+ system("rpm", "-i$rpm_opt", "--nodeps", "--force", @rpms_install);
}
}
if (@rpms_upgrade) {
@@ -386,11 +378,11 @@ if (@rpms_install || @rpms_upgrade) {
message(_("Installation failed"));
m|^/| && !-e $_ and exit 2 foreach @rpms_upgrade; #- missing local file
+ $auto and exit 1; #- if auto has been set, avoid asking user.
$noexpr = _("Nn");
$yesexpr = _("Yy");
print SAVEOUT _("Try installation without checking dependencies? (y/N) ");
- $auto and exit 1; #- if auto has been set, avoid asking user.
$force or <STDIN> =~ /[$yesexpr]/ or exit 1;
$urpm->{log}("starting installing packages without deps");
system("rpm", "-U$rpm_opt", "--nodeps", @rpms_upgrade);