diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-01-10 13:18:45 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-01-10 13:18:45 +0000 |
commit | d195c7b675d811524741e7ae0129242464b39be6 (patch) | |
tree | 15e33e8bd58b88eef4aecb83d4a866d4909d016a | |
parent | e8df49d47cec9100b956d54a50c59fdd7f07c45c (diff) | |
download | urpmi-d195c7b675d811524741e7ae0129242464b39be6.tar urpmi-d195c7b675d811524741e7ae0129242464b39be6.tar.gz urpmi-d195c7b675d811524741e7ae0129242464b39be6.tar.bz2 urpmi-d195c7b675d811524741e7ae0129242464b39be6.tar.xz urpmi-d195c7b675d811524741e7ae0129242464b39be6.zip |
no_comment
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | urpmi | 6 | ||||
-rw-r--r-- | urpmi.spec | 6 |
4 files changed, 17 insertions, 5 deletions
@@ -1,3 +1,11 @@ +2000-01-10 Pixel <pixel@mandrakesoft.com> + + * urpmi: bug fix from Brian J. Murrell + +2000-01-07 Pixel <pixel@mandrakesoft.com> + + * urpmi: tty question now defaults to yes and acts that way! + 2000-01-06 Pixel <pixel@mandrakesoft.com> * urpmi: tty question now defaults to yes (y/N -> N/y) @@ -1,4 +1,4 @@ -PREFIX = + PREFIX = BINDIR = $(PREFIX)/usr/bin MANDIR = $(PREFIX)/usr/man SBINDIR = $(PREFIX)/usr/sbin @@ -68,7 +68,7 @@ $ok or exit 1; @installed = `/bin/rpm -qa`; $? and die(_("rpm database query failed\n")); foreach (@installed) { - my ($name, $v, $r) = /(.*)-([^-]+)-([^-.]+)/; + my ($name, $v, $r) = /(.*)-([^-]+)-([^-.]+)\n/; exists $installed{$name} && le_version([$v, $r], $installed{$name}) or $installed{$name} = [$v, $r]; } @installed{map { chop; $_ } @installed} = (); @@ -86,7 +86,7 @@ if (!$auto and difference2(\@to_install, \@packages)) { $? and exit 0; } else { print SAVEOUT "$msg:\n@to_install\n$msg2 (Y/n) "; - <STDIN> =~ /n/i or exit 0; + <STDIN> =~ /n/i and exit 0; } } @@ -210,7 +210,7 @@ sub version_compare { } sub le_version { my $cmp = version_compare($_[0][0], $_[1][0]); - return $cmp < 0 || $cmp == 0 && version_compare($_[0][1], $_[1][1]) < 0; + return $cmp < 0 || $cmp == 0 && version_compare($_[0][1], $_[1][1]) <= 0; } sub toMb { @@ -2,7 +2,7 @@ Name: urpmi Version: 0.9 -Release: 36mdk +Release: 38mdk License: GPL Source0: %{name}.tar.bz2 Summary: User mode rpm install @@ -17,7 +17,11 @@ well-known rpms to be installed. You can compare rpm vs. urpmi with insmod vs. modprobe %changelog +* Mon Jan 10 2000 Pixel <pixel@mandrakesoft.com> +- bug fix from Brian J. Murrell + * Fri Jan 7 2000 Pixel <pixel@mandrakesoft.com> +- urpmi: tty question now defaults to yes and acts that way! - add an example to urpmi.addmedia.8 * Thu Jan 6 2000 Pixel <pixel@mandrakesoft.com> |