Changes between Initial Version and Version 1 of Ticket #43717


Ignore:
Timestamp:
May 15, 2014, 8:35:54 PM (10 years ago)
Author:
mf2k (Frank Schima)
Comment:

In the future, please use WikiFormatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43717

    • Property Component changed from ports to base
  • Ticket #43717 – Description

    initial v1  
    11Because I'm behind an http proxy I'm using svn and not rsync to synchronize. I added the following to sources.conf:
    22
     3{{{
    34file://opt/local/var/macports/sources/svn.macports.org/trunk/dports/
     5}}}
    46
    57But when I run sync it fails because it is using a bad path (note it is preceded with /opt/local/bin):
    68
     9{{{
    710mac$ ./port -d sync
    811--->  Updating the ports tree
     
    1215Exit code: 1
    1316Error: updating PortIndex for file://opt/local/var/macports/sources/svn.macports.org/trunk/dports/ failed
    14 
     17}}}
    1518
    1619I think this is caused by an off by one error in macports.tcl:proc macports::getportdir
     
    1821The following change seems to fix the problem:
    1922
     23{{{
    2024set path [file normalize [string range $url [expr [string length $protocol] + 3] end]]
     25}}}
    2126
    2227to
    2328
     29{{{
    2430set path [file normalize [string range $url [expr [string length $protocol] + 2] end]]
     31}}}