Skip to content

Commit

Permalink
use platform-specific index from daily tarball
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.macports.org/repository/macports/trunk/base@68786 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jmroot committed Jun 13, 2010
1 parent 9a3f2f6 commit 0df0cef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/macports1.0/macports.tcl
Expand Up @@ -1942,7 +1942,7 @@ proc mportsync {{optionslist {}}} {
continue continue
} }


file mkdir [file dirname $indexfile] file mkdir $destdir


set verboseflag {} set verboseflag {}
if {$macports::portverbose == "yes"} { if {$macports::portverbose == "yes"} {
Expand Down Expand Up @@ -1976,6 +1976,11 @@ proc mportsync {{optionslist {}}} {
ui_warn "Setting world read permissions on parts of the ports tree failed, need root?" ui_warn "Setting world read permissions on parts of the ports tree failed, need root?"
} }


set platindex "PortIndex_${macports::os_platform}_${macports::os_major}_${macports::os_arch}/PortIndex"
if {[file isfile ${destdir}/${platindex}] && [file isfile ${destdir}/${platindex}.quick]} {
file rename -force "${destdir}/${platindex}" "${destdir}/${platindex}.quick" $destdir
}

file delete $tarpath file delete $tarpath


set needs_portindex 1 set needs_portindex 1
Expand Down

0 comments on commit 0df0cef

Please sign in to comment.