Changeset 53740


Ignore:
Timestamp:
Jul 13, 2009, 4:52:03 AM (10 years ago)
Author:
jmr@…
Message:

fix http sync, I think (#19338)

Location:
trunk/base/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/macports.tcl

    r53713 r53740  
    10011001            set proposedpath [file normalize [file join [getportdir $url] .. ..]]
    10021002        }
     1003        default {
     1004            set proposedpath [getsourcepath $url]
     1005        }
    10031006    }
    10041007
     
    16831686                    set indexfile [macports::getindex $source]
    16841687                    file mkdir [file dirname $indexfile]
    1685                     curl $source/PortIndex $indexfile
     1688                    curl fetch ${source}/PortIndex $indexfile
     1689                    curl fetch ${source}/PortIndex.quick ${indexfile}.quick
    16861690                }
    16871691            }
  • trunk/base/src/port/portindex.tcl

    r51780 r53740  
    6161            cd [file join $directory [file dirname $portinfo(portdir)]]
    6262            puts "Archiving port $portinfo(name) to [file join $outdir $portinfo(portarchive)]"
    63             set tar [findBinary tar $macports::autoconf::tar_path]
    64             set gzip [findBinary gzip $macports::autoconf::gzip_path]
     63            set tar [macports::findBinary tar $macports::autoconf::tar_path]
     64            set gzip [macports::findBinary gzip $macports::autoconf::gzip_path]
    6565            if {[catch {exec $tar -cf - [file tail $portdir] | $gzip -c >[file join $outdir $portinfo(portarchive)]} result]} {
    6666                puts stderr "Failed to create port archive $portinfo(portarchive): $result"
     
    6969        }
    7070
    71         set keepkeys {categories depends_fetch depends_extract depends_build depends_lib depends_run description epoch homepage long_description maintainers name platforms revision variants version portdir}
     71        set keepkeys {categories depends_fetch depends_extract depends_build depends_lib depends_run description epoch homepage long_description maintainers name platforms revision variants version portdir portarchive}
    7272        foreach availkey [array names portinfo] {
    7373            if {[lsearch -exact ${keepkeys} $availkey] == -1} {
Note: See TracChangeset for help on using the changeset viewer.