Ticket #15868: patch-macports-no-svn-rsync-from-autoconf.diff
File patch-macports-no-svn-rsync-from-autoconf.diff, 2.8 KB (added by raimue (Rainer Müller), 16 years ago) |
---|
-
macports1.0/macports.tcl
1377 1377 proc mportsync {{optionslist {}}} { 1378 1378 global macports::sources macports::portdbpath macports::rsync_options tcl_platform 1379 1379 global macports::portverbose 1380 global macports::autoconf::rsync_path1381 1380 array set options $optionslist 1382 1381 1383 1382 set numfailed 0 … … 1395 1394 {^file$} { 1396 1395 set portdir [macports::getportdir $source] 1397 1396 if {[file exists $portdir/.svn]} { 1398 set svn_commandline "[macports::findBinary svn ${macports::autoconf::svn_path}] update --non-interactive ${portdir}"1397 set svn_commandline "[macports::findBinary svn] update --non-interactive ${portdir}" 1399 1398 ui_debug $svn_commandline 1400 1399 if { 1401 1400 [catch { … … 1428 1427 set source "${source}/" 1429 1428 } 1430 1429 # Do rsync fetch 1431 set rsync_commandline " ${macports::autoconf::rsync_path}${rsync_options} ${source} ${destdir}"1430 set rsync_commandline "[macports::findBinary rsync] ${rsync_options} ${source} ${destdir}" 1432 1431 ui_debug $rsync_commandline 1433 1432 if {[catch {system $rsync_commandline}]} { 1434 1433 ui_error "Synchronization of the local ports tree failed doing rsync" … … 1781 1780 # selfupdate procedure 1782 1781 proc macports::selfupdate {{optionslist {}}} { 1783 1782 global macports::prefix macports::portdbpath macports::libpath macports::rsync_server macports::rsync_dir macports::rsync_options 1784 global macports::autoconf::macports_version macports::autoconf::rsync_path1783 global macports::autoconf::macports_version 1785 1784 array set options $optionslist 1786 1785 1787 1786 # syncing ports tree. … … 1800 1799 1801 1800 # sync the MacPorts sources 1802 1801 ui_debug "Updating MacPorts sources using rsync" 1803 if { [catch { system " $rsync_path$rsync_options rsync://${rsync_server}/${rsync_dir} $mp_source_path" } result ] } {1802 if { [catch { system "[macports::findBinary rsync] $rsync_options rsync://${rsync_server}/${rsync_dir} $mp_source_path" } result ] } { 1804 1803 return -code error "Error synchronizing MacPorts sources: $result" 1805 1804 } 1806 1805 -
macports1.0/macports_autoconf.tcl.in
35 35 variable macports_conf_path "@MPCONFIGDIR_EXPANDED@" 36 36 variable macports_version "@MP_VERSION@" 37 37 variable macports_user_dir "~/.macports" 38 variable svn_path "@SVN@"39 variable rsync_path "@RSYNC@"40 38 variable open_path "@OPEN@" 41 39 }