Ticket #27881: patch-src-port1.0-portfetch.tcl.diff
File patch-src-port1.0-portfetch.tcl.diff, 1.7 KB (added by pixilla (Bradley Giesbrecht), 14 years ago) |
---|
-
src/port1.0/portfetch.tcl
48 48 49 49 # define options: distname master_sites 50 50 options master_sites patch_sites extract.suffix distfiles patchfiles use_bzip2 use_lzma use_xz use_zip use_7z use_dmg dist_subdir \ 51 fetch.type fetch.user fetch.password fetch.use_epsv fetch.ignore_sslcert \51 fetch.type fetch.user fetch.password fetch.use_epsv fetch.ignore_sslcert fetch.user_agent \ 52 52 master_sites.mirror_subdir patch_sites.mirror_subdir \ 53 53 bzr.url bzr.revision \ 54 54 cvs.module cvs.root cvs.password cvs.date cvs.tag cvs.method \ … … 116 116 default fetch.ignore_sslcert "no" 117 117 # Use remote timestamps 118 118 default fetch.remote_time "no" 119 # Set user agent 120 default fetch.user_agent "" 119 121 120 122 default fallback_mirror_site "macports" 121 123 default global_mirror_site "macports_distfiles" … … 421 423 # the listed url variable and associated distfile 422 424 proc portfetch::fetchfiles {args} { 423 425 global distpath all_dist_files UI_PREFIX 424 global fetch.user fetch.password fetch.use_epsv fetch.ignore_sslcert fetch.remote_time 426 global fetch.user fetch.password fetch.use_epsv fetch.ignore_sslcert fetch.remote_time fetch.user_agent 425 427 global fallback_mirror_site portverbose usealtworkpath altprefix 426 428 variable fetch_urls 427 429 variable urlmap … … 443 445 if {$portverbose == "yes"} { 444 446 lappend fetch_options "-v" 445 447 } 448 if {[string length ${fetch.user_agent}]} { 449 lappend fetch_options "--user-agent" 450 lappend fetch_options "'${fetch.user_agent}'" 451 } 446 452 set sorted no 447 453 448 454 foreach {url_var distfile} $fetch_urls {