From f23e0bbff40b3922f7612be4f12200d657f1d629 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 15 Apr 2013 05:51:53 +0000 Subject: add basic support for --downgrade (mga#6655) needs new URPM (backported from trunk) --- NEWS | 2 ++ pod/urpmi.8.pod | 4 ++++ urpm/args.pm | 1 + urpmi | 2 ++ 4 files changed, 9 insertions(+) diff --git a/NEWS b/NEWS index 373f6b9d..414a6b32 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ - gurpmi: o add scrollbar for long one liner messages (mga#5118) o wrap big messages (mga#5118) +- urpmi: + o add basic support for --downgrade (mga#6655) - urpmq: minor documentation fix (mga#7166) Version 6.48.3 - 24 August 2012 diff --git a/pod/urpmi.8.pod b/pod/urpmi.8.pod index d1776c7d..e52591e5 100644 --- a/pod/urpmi.8.pod +++ b/pod/urpmi.8.pod @@ -208,6 +208,10 @@ This is useful if you have C in urpmi.cfg. Update only the database, not the filesystem. +=item B<--downgrade> + +Force installing the packages even though they are already installed. + =item B<--replacepkgs> Force installing the packages even though they are already installed. diff --git a/urpm/args.pm b/urpm/args.pm index c66db9de..742a4342 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -127,6 +127,7 @@ my %options_spec = ( 'no-suggests' => sub { $urpm->{options}{'no-suggests'} = 1 }, 'allow-nodeps' => sub { $urpm->{options}{'allow-nodeps'} = 1 }, 'allow-force' => sub { $urpm->{options}{'allow-force'} = 1 }, + 'downgrade' => sub { $urpm->{options}{downgrade} = 1 }, 'parallel=s' => \$::parallel, 'metalink!' => sub { $urpm->{options}{metalink} = $_[1] }, diff --git a/urpmi b/urpmi index e7a5ef89..0650a46d 100755 --- a/urpmi +++ b/urpmi @@ -98,6 +98,8 @@ usage: ") . N(" --clean - remove rpm from cache before anything else. ") . N(" --noclean - don't clean rpms from cache. ") . N(" --justdb - update only the rpm db, not the filesystem. +") . N(" --downgrade - dowgrade a package from the version currently installed + to the previously highest version ") . N(" --replacepkgs - force installing packages which are already installed. ") . N(" --force - force invocation even if some packages do not exist. ") . N(" --allow-nodeps - allow asking user to install packages without -- cgit v1.2.1