diff options
author | Francois Pons <fpons@mandriva.com> | 2002-02-12 10:18:20 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-02-12 10:18:20 +0000 |
commit | 047dc1fb62b7239746fc8649d1bc037419e6a045 (patch) | |
tree | 5f0ef3c3a85adef65e45778c0f7825a7676a37f4 | |
parent | df6f155fa9988fb0f103bfba87cfa0d58a08bca7 (diff) | |
download | urpmi-047dc1fb62b7239746fc8649d1bc037419e6a045.tar urpmi-047dc1fb62b7239746fc8649d1bc037419e6a045.tar.gz urpmi-047dc1fb62b7239746fc8649d1bc037419e6a045.tar.bz2 urpmi-047dc1fb62b7239746fc8649d1bc037419e6a045.tar.xz urpmi-047dc1fb62b7239746fc8649d1bc037419e6a045.zip |
add --nodeps by default for package installed (else using --auto will break).
-rwxr-xr-x | urpmi | 20 |
1 files changed, 6 insertions, 14 deletions
@@ -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); |