diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-11 14:51:43 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-11 14:51:43 +0000 |
commit | 687f8df851493677352fb0968c8f8e42140248ed (patch) | |
tree | a8ebfb1e306387691745fa8153abc28a0a7934e0 /urpm.pm | |
parent | d698955cce0fcf0134584e9f1ff6711010838e95 (diff) | |
download | urpmi-687f8df851493677352fb0968c8f8e42140248ed.tar urpmi-687f8df851493677352fb0968c8f8e42140248ed.tar.gz urpmi-687f8df851493677352fb0968c8f8e42140248ed.tar.bz2 urpmi-687f8df851493677352fb0968c8f8e42140248ed.tar.xz urpmi-687f8df851493677352fb0968c8f8e42140248ed.zip |
Add a quiet option to the API of specialized download routines
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -988,14 +988,17 @@ sub _guess_pubkey_name { #- Recognized options : #- all : all medias are being rebuilt #- callback : UI callback +#- compress : use compressed download (for rsync) #- forcekey : force retrieval of pubkey #- force : try to force rebuilding base files (1) or hdlist from rpm files (2) +#- limit_rate : download limit rate #- noclean : keep old files in the header cache directory #- nolock : don't lock the urpmi database #- nomd5sum : don't verify MD5SUM of retrieved files #- nopubkey : don't use rpm pubkeys #- norebuild : don't try to rebuild hdlists from rpm headers #- probe_with : probe synthesis or hdlist (or none) +#- quiet : download hdlists quietly #- ratio : use this compression ratio (with gzip, default is 4) sub update_media { my ($urpm, %options) = @_; @@ -1530,7 +1533,7 @@ this could happen if you mounted manually the directory when creating the medium $urpm->{sync}( { dir => "$urpm->{cachedir}/partial", - quiet => 0, + quiet => $options{quiet}, limit_rate => $options{limit_rate}, compress => $options{compress}, callback => $options{callback}, @@ -1574,7 +1577,7 @@ this could happen if you mounted manually the directory when creating the medium $urpm->{sync}( { dir => "$urpm->{cachedir}/partial", - quiet => 0, + quiet => $options{quiet}, limit_rate => $options{limit_rate}, compress => $options{compress}, callback => $options{callback}, @@ -2797,7 +2800,7 @@ sub download_packages_of_distant_media { $urpm->{sync}( { dir => "$urpm->{cachedir}/partial", - quiet => 0, + quiet => $options{quiet}, limit_rate => $options{limit_rate}, resume => $options{resume}, compress => $options{compress}, |