diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-04-14 13:44:25 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-04-14 13:44:25 +0000 |
commit | 135537b6b01675eff80176c6f5d546d20a598d06 (patch) | |
tree | 86db94c22e6d01a6172084322967d687f54ec3bc /urpmi | |
parent | 823d906c0cd4470db45431f9fb4ba9e5071cab56 (diff) | |
download | urpmi-135537b6b01675eff80176c6f5d546d20a598d06.tar urpmi-135537b6b01675eff80176c6f5d546d20a598d06.tar.gz urpmi-135537b6b01675eff80176c6f5d546d20a598d06.tar.bz2 urpmi-135537b6b01675eff80176c6f5d546d20a598d06.tar.xz urpmi-135537b6b01675eff80176c6f5d546d20a598d06.zip |
Add a new option, --no-install, to urpmi, to only download rpms and
not install them (by Michael Scherer)
Diffstat (limited to 'urpmi')
-rwxr-xr-x | urpmi | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -37,6 +37,7 @@ our $sortmedia = ''; our $synthesis = ''; our $allow_medium_change = 0; our $auto_select = 0; +our $no_install = 0; our $no_remove = 0; our $src = 0; our $install_src = 0; @@ -83,6 +84,7 @@ usage: ") . N(" --auto - automatically select a package in choices. ") . N(" --auto-select - automatically select packages to upgrade the system. ") . N(" --no-uninstall - never ask to uninstall a package, abort the installation. +") . N(" --no-install - don't install packages (only download) ") . N(" --keep - keep existing packages if possible, reject requested packages that lead to removals. ") . N(" --split-level - split in small transaction if more than given packages @@ -580,6 +582,8 @@ foreach my $set (@{$state->{transaction} || []}) { next; } + next if $no_install; + #- clean to remove any src package now. foreach (\%transaction_sources_install, \%transaction_sources) { foreach my $id (keys %$_) { |