From 963d8d493fe73da40300971341055e606f516dc1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 9 Feb 2013 21:25:12 +0000 Subject: add basic support for --downgrade (mga#6655) needs new URPM --- NEWS | 2 ++ pod/8/urpmi.pod | 4 ++++ urpm/args.pm | 1 + urpmi | 2 ++ 4 files changed, 9 insertions(+) diff --git a/NEWS b/NEWS index 59e81a2a..72ad19b5 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- add basic support for --downgrade (mga#6655) + Version 7.18 - 9 February 2013, by Thierry Vignaud - keep a separate counter for erasures diff --git a/pod/8/urpmi.pod b/pod/8/urpmi.pod index c9fd27a4..ac2ac041 100644 --- a/pod/8/urpmi.pod +++ b/pod/8/urpmi.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 41201558..86906669 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -124,6 +124,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 f862c396..3f76f6a2 100755 --- a/urpmi +++ b/urpmi @@ -94,6 +94,8 @@ sub 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