diff options
author | Francois Pons <fpons@mandriva.com> | 2002-08-28 14:38:35 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-08-28 14:38:35 +0000 |
commit | 50daeca06b381768cd0548b3432b99a073fba3be (patch) | |
tree | 74530388ea0f7e3f18939d1bea94de4e7c156212 | |
parent | 37a99f9286197bfcb661f9b38d7433fa08fd2481 (diff) | |
download | urpmi-50daeca06b381768cd0548b3432b99a073fba3be.tar urpmi-50daeca06b381768cd0548b3432b99a073fba3be.tar.gz urpmi-50daeca06b381768cd0548b3432b99a073fba3be.tar.bz2 urpmi-50daeca06b381768cd0548b3432b99a073fba3be.tar.xz urpmi-50daeca06b381768cd0548b3432b99a073fba3be.zip |
4.0-7mdk
-rwxr-xr-x | urpmi | 9 | ||||
-rw-r--r-- | urpmi.spec | 8 | ||||
-rwxr-xr-x | urpmq | 9 |
3 files changed, 19 insertions, 7 deletions
@@ -521,7 +521,8 @@ if (%sources_install || %sources) { } } else { my @l = $urpm->install([ keys %{$state->{ask_remove} || {}} ], \%sources_install, \%sources, - translate_message => 1, test => $test); + translate_message => 1, + test => $test, oldpackage => $state->{oldpackage}); if (@l) { message(_("Installation failed") . ":\n" . join("\n", map { "\t$_" } @l)); @@ -534,7 +535,8 @@ if (%sources_install || %sources) { or exit 1; $urpm->{log}("starting installing packages without deps"); @l = $urpm->install([ keys %{$state->{ask_remove} || {}} ], \%sources_install, \%sources, - translate_message => 1, nodeps => 1); + translate_message => 1, nodeps => 1, + test => $test, oldpackage => $state->{oldpackage}); if (@l) { message(_("Installation failed") . ":\n" . join("\n", map { "\t$_" } @l)); !$allow_force and exit 1; @@ -542,7 +544,8 @@ if (%sources_install || %sources) { or exit 1; $urpm->{log}("starting force installing packages without deps"); @l = $urpm->install([ keys %{$state->{ask_remove} || {}} ], \%sources_install, \%sources, - translate_message => 1, nodeps => 1, force => 1); + translate_message => 1, nodeps => 1, force => 1, + test => $test, oldpackage => $state->{oldpackage}); @l and $urpm->fatal(2, _("Installation failed") . ":\n" . join("\n", map { "\t$_" } @l)); } } else { @@ -2,13 +2,13 @@ Name: urpmi Version: 4.0 -Release: 6mdk +Release: 7mdk License: GPL Source0: %{name}.tar.bz2 Source1: %{name}.logrotate Summary: User mode rpm install Requires: eject webfetch perl-DateManip >= 5.40 -PreReq: perl-Locale-gettext rpmtools >= 4.3-6mdk perl-URPM >= 0.70-1mdk +PreReq: perl-Locale-gettext rpmtools >= 4.3-6mdk perl-URPM >= 0.70-3mdk BuildRequires: bzip2-devel gettext rpm-devel >= 4.0.3 BuildRoot: %{_tmppath}/%{name}-buildroot BuildArch: noarch @@ -177,6 +177,10 @@ fi %changelog +* Wed Aug 28 2002 François Pons <fpons@mandrakesoft.com> 4.0-7mdk +- added --list-media to urpmq. +- fixed old package not upgraded. + * Tue Aug 27 2002 François Pons <fpons@mandrakesoft.com> 4.0-6mdk - fixed skip.list new format. @@ -54,6 +54,7 @@ usage: ") . _(" --auto-select - automatically select packages to upgrade the system. ") . _(" --fuzzy - impose fuzzy search (same as -y). ") . _(" --list - list available packages. +") . _(" --list-media - list available media. ") . _(" --src - next package is a source package (same as -s). ") . _(" --headers - extract headers for package listed from urpmi db to stdout (root only). @@ -84,6 +85,7 @@ for (@ARGV) { /^--auto-select$/ and do { $query->{deps} = $query->{upgrade} = $query->{auto_select} = 1; next }; /^--fuzzy$/ and do { $query->{fuzzy} = 1; next }; /^--list$/ and do { $query->{list} = 1; next }; + /^--list-media$/ and do { $query->{list_media} = 1; next }; /^--src$/ and do { $query->{src} = 1; next }; /^--headers$/ and do { $query->{headers} = 1; next }; /^--sources$/ and do { $query->{sources} = 1; next }; @@ -146,8 +148,11 @@ $urpm->configure(nocheck_access => 1, my $state = {}; my %requested; -#- if list has been activated, select all... -if ($query->{list}) { +if ($query->{list_media}) { + print join "\n", map { $_->{name} } @{$urpm->{media}}; + exit 0; +} elsif ($query->{list}) { + #- if list has been activated, select all... @{$state->{selected}}{0 .. $#{$urpm->{depslist}}} = (); } else { %requested = $urpm->register_rpms(@files); |