Changes between Initial Version and Version 1 of Ticket #43717
- Timestamp:
- May 15, 2014, 8:35:54 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #43717
-
Property
Component
changed from
ports
tobase
-
Property
Component
changed from
-
Ticket #43717 – Description
initial v1 1 1 Because I'm behind an http proxy I'm using svn and not rsync to synchronize. I added the following to sources.conf: 2 2 3 {{{ 3 4 file://opt/local/var/macports/sources/svn.macports.org/trunk/dports/ 5 }}} 4 6 5 7 But when I run sync it fails because it is using a bad path (note it is preceded with /opt/local/bin): 6 8 9 {{{ 7 10 mac$ ./port -d sync 8 11 ---> Updating the ports tree … … 12 15 Exit code: 1 13 16 Error: updating PortIndex for file://opt/local/var/macports/sources/svn.macports.org/trunk/dports/ failed 14 17 }}} 15 18 16 19 I think this is caused by an off by one error in macports.tcl:proc macports::getportdir … … 18 21 The following change seems to fix the problem: 19 22 23 {{{ 20 24 set path [file normalize [string range $url [expr [string length $protocol] + 3] end]] 25 }}} 21 26 22 27 to 23 28 29 {{{ 24 30 set path [file normalize [string range $url [expr [string length $protocol] + 2] end]] 31 }}}