diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-10-04 11:59:09 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-10-04 11:59:09 +0000 |
commit | 9b9fc8f102ad910401dfdf8d421b14ac09059771 (patch) | |
tree | 26ebac9a2d1bcc1e76575a463a839dccd9c75856 /urpm/media.pm | |
parent | 2ae84e2570295034652ea6843c678ee00b2b6df8 (diff) | |
download | urpmi-9b9fc8f102ad910401dfdf8d421b14ac09059771.tar urpmi-9b9fc8f102ad910401dfdf8d421b14ac09059771.tar.gz urpmi-9b9fc8f102ad910401dfdf8d421b14ac09059771.tar.bz2 urpmi-9b9fc8f102ad910401dfdf8d421b14ac09059771.tar.xz urpmi-9b9fc8f102ad910401dfdf8d421b14ac09059771.zip |
- library:
o urpm::media::add_distrib_media: add option "only_updates" for rpmdrake
Diffstat (limited to 'urpm/media.pm')
-rw-r--r-- | urpm/media.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index 3ff146f1..37719335 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -713,6 +713,7 @@ sub add_medium { #- - initial_number : when adding several numbered media, start with this number #- - probe_with : force use of synthesis/hdlist/rpms instead of using both synthesis&hdlist #- - ask_media : callback to know whether each media should be added +#- - only_updates : only add "update" media (used by rpmdrake) #- other options are passed to add_medium(): ignore, nolock, virtual sub add_distrib_media { my ($urpm, $name, $url, %options) = @_; @@ -775,6 +776,9 @@ sub add_distrib_media { } my $is_update_media = $distribconf->getvalue($media, 'updates_for'); + if ($options{only_updates}) { + $is_update_media or next; + } my $use_copied_hdlist = $urpm->{options}{use_copied_hdlist} || $distribconf->getvalue($media, 'use_copied_hdlist'); my $with_hdlist = $use_copied_hdlist && offset_pathname( |