summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-03-05 17:07:53 +0000
committerFrancois Pons <fpons@mandriva.com>2001-03-05 17:07:53 +0000
commit1a06c954e1f96ec44241fdcb0749cb2e5a4d0385 (patch)
tree3221a3985d00cf1c83795dadd33b08abd53410ec
parent91a51b48ebf2548e16dd63457bf96fa7f81aad29 (diff)
downloadurpmi-1a06c954e1f96ec44241fdcb0749cb2e5a4d0385.tar
urpmi-1a06c954e1f96ec44241fdcb0749cb2e5a4d0385.tar.gz
urpmi-1a06c954e1f96ec44241fdcb0749cb2e5a4d0385.tar.bz2
urpmi-1a06c954e1f96ec44241fdcb0749cb2e5a4d0385.tar.xz
urpmi-1a06c954e1f96ec44241fdcb0749cb2e5a4d0385.zip
*** empty log message ***
-rw-r--r--urpm.pm2
-rwxr-xr-xurpmi8
-rw-r--r--urpmi.spec6
3 files changed, 10 insertions, 6 deletions
diff --git a/urpm.pm b/urpm.pm
index 545e5eeb..49878631 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1102,7 +1102,7 @@ sub filter_minimal_packages_to_upgrade {
exists $packages->{$choices[0]{id}} or $packages->{$choices[0]{id}} = 1;
unshift @packages, $choices[0]{id};
} else {
- push @packages, [ sort { $a->{id} <=> $b->{id} } @choices ];
+ push @packages, [ sort { $a <=> $b } map { $_->{id} } @choices ];
}
}
}
diff --git a/urpmi b/urpmi
index 9b714756..696ce2cd 100755
--- a/urpmi
+++ b/urpmi
@@ -285,14 +285,14 @@ sub install {
$noexpr = _("Nn");
$yesexpr = _("Yy");
- print SAVEOUT _("Try installation without checking dependencies? (Y/n) ");
- $force or <STDIN> =~ /[$noexpr]/ and exit 1;
+ print SAVEOUT _("Try installation without checking dependencies? (y/N) ");
+ $force or <STDIN> =~ /[$yesexpr]/ or exit 1;
system("rpm", $rpm_opt, "--nodeps", @_);
if ($?) {
message(_("Installation failed"));
- print SAVEOUT _("Try installation even more strongly (--force)? (Y/n) ");
- $force or <STDIN> =~ /[$noexpr]/ and exit 0;
+ print SAVEOUT _("Try installation even more strongly (--force)? (y/N) ");
+ $force or <STDIN> =~ /[$yesexpr]/ or exit 0;
system("rpm", $rpm_opt, "--nodeps", "--force", @_);
}
}
diff --git a/urpmi.spec b/urpmi.spec
index 3bd67f66..d6efd5d4 100644
--- a/urpmi.spec
+++ b/urpmi.spec
@@ -2,7 +2,7 @@
Name: urpmi
Version: 1.5
-Release: 16mdk
+Release: 17mdk
License: GPL
Source0: %{name}.tar.bz2
Summary: User mode rpm install
@@ -113,6 +113,10 @@ autoirpm.uninstall
%changelog
+* Mon Mar 5 2001 François Pons <fpons@mandrakesoft.com> 1.5-17mdk
+- fixed ask choices for urpmi -m mode.
+- changed default behaviour to abort transaction on error.
+
* Mon Mar 5 2001 François Pons <fpons@mandrakesoft.com> 1.5-16mdk
- make sure to kill sub process that are doing log to
avoid lock.