summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-21 16:22:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-21 16:22:38 +0000
commite1b77dc67dc7c350c5d3e6acd451785a9c78f340 (patch)
tree017302f0d6301141e1fd3771ba072a695ba2b011 /urpm/media.pm
parent01508b09ee68c55499c1b1a5ea658bb03204b96c (diff)
downloadurpmi-e1b77dc67dc7c350c5d3e6acd451785a9c78f340.tar
urpmi-e1b77dc67dc7c350c5d3e6acd451785a9c78f340.tar.gz
urpmi-e1b77dc67dc7c350c5d3e6acd451785a9c78f340.tar.bz2
urpmi-e1b77dc67dc7c350c5d3e6acd451785a9c78f340.tar.xz
urpmi-e1b77dc67dc7c350c5d3e6acd451785a9c78f340.zip
- urpmi, gurpmi
o allow "retry" on aria2 download failure
Diffstat (limited to 'urpm/media.pm')
-rw-r--r--urpm/media.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 71898729..e44ae246 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1445,7 +1445,7 @@ sub _download_MD5SUM_and_check {
undef;
}
-#- options: callback, force, nomd5sum, probe_with, quiet
+#- options: callback, ask_retry, force, nomd5sum, probe_with, quiet
sub _update_medium__parse_if_unmodified__remote {
my ($urpm, $medium, $options) = @_;
@@ -1563,7 +1563,7 @@ sub _read_cachedir_pubkey {
join(',', keys %key_ids);
}
-#- options: callback, force, nomd5sum, probe_with, quiet, forcekey, nopubkey, wait_lock
+#- options: callback, ask_retry, force, nomd5sum, probe_with, quiet, forcekey, nopubkey, wait_lock
#- (from _update_medium__parse_if_unmodified__local and _update_medium__parse_if_unmodified__remote)
sub _update_medium_ {
my ($urpm, $medium, %options) = @_;
@@ -1665,6 +1665,7 @@ sub _update_media__handle_some_flags {
#- Recognized options :
#- all : all medias are being rebuilt
#- allow_failures: whereas failing to update a medium is non fatal
+#- ask_retry : function called when a download fails. if it returns true, the download is retried
#- callback : UI callback
#- forcekey : force retrieval of pubkey
#- force : try to force rebuilding base files