summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-02-12 10:18:20 +0000
committerFrancois Pons <fpons@mandriva.com>2002-02-12 10:18:20 +0000
commit047dc1fb62b7239746fc8649d1bc037419e6a045 (patch)
tree5f0ef3c3a85adef65e45778c0f7825a7676a37f4
parentdf6f155fa9988fb0f103bfba87cfa0d58a08bca7 (diff)
downloadurpmi-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-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);