Changeset 83273
- Timestamp:
- 08/29/11 07:08:11 (4 years ago)
- Location:
- branches/release_2_0
- Files:
-
- 9 edited
-
. (modified) (1 prop)
-
base (modified) (1 prop)
-
base/portmgr/fedora/macports.spec (modified) (1 prop)
-
base/src/macports1.0/macports.tcl (modified) (10 diffs)
-
base/src/pextlib1.0/sha2.c (modified) (1 prop)
-
base/src/pextlib1.0/sha2.h (modified) (1 prop)
-
base/src/pextlib1.0/sha256cmd.c (modified) (1 prop)
-
base/src/pextlib1.0/sha256cmd.h (modified) (1 prop)
-
base/src/registry2.0/receipt_sqlite.tcl (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/release_2_0
-
branches/release_2_0/base
- Property svn:mergeinfo changed
/trunk/base merged: 83271
- Property svn:mergeinfo changed
-
branches/release_2_0/base/portmgr/fedora/macports.spec
- Property svn:mergeinfo changed
/trunk/base/portmgr/fedora/macports.spec merged: 83271
- Property svn:mergeinfo changed
-
branches/release_2_0/base/src/macports1.0/macports.tcl
r83268 r83273 1925 1925 global macports::autoconf::rsync_path macports::autoconf::tar_path macports::autoconf::openssl_path 1926 1926 array set options $optionslist 1927 if {[info exists options(no_reindex)]} { 1928 upvar $options(needed_portindex_var) any_needed_portindex 1929 } 1927 1930 1928 1931 set numfailed 0 … … 2052 2055 } 2053 2056 2057 set needs_portindex 1 2054 2058 # now sync the index if the local file is missing or older than a day 2055 if {![file isfile $indexfile] || [expr [clock seconds] - [file mtime $indexfile]] > 86400} { 2059 if {![file isfile $indexfile] || [expr [clock seconds] - [file mtime $indexfile]] > 86400 2060 || [info exists options(no_reindex)]} { 2056 2061 if {$is_tarball} { 2057 2062 # chop ports.tar off the end … … 2067 2072 } else { 2068 2073 set ok 1 2074 set needs_portindex 0 2069 2075 if {$is_tarball} { 2070 2076 set ok 0 2077 set needs_portindex 1 2071 2078 # verify signature for PortIndex 2072 2079 set rsync_commandline "${macports::autoconf::rsync_path} ${rsync_options} ${remote_indexfile}.rmd160 ${destdir}" … … 2076 2083 if {![catch {exec $openssl dgst -ripemd160 -verify $pubkey -signature ${destdir}/PortIndex.rmd160 ${destdir}/PortIndex} result]} { 2077 2084 set ok 1 2085 set needs_portindex 0 2078 2086 ui_debug "successful verification with key $pubkey" 2079 2087 break … … 2097 2105 ui_warn "Setting world read permissions on parts of the ports tree failed, need root?" 2098 2106 } 2099 set needs_portindex 12100 2107 } 2101 2108 {^https?$|^ftp$} { … … 2159 2166 2160 2167 file delete $tarpath 2161 2162 set needs_portindex 12163 2168 } else { 2164 2169 # sync just a PortIndex file … … 2175 2180 2176 2181 if {$needs_portindex} { 2177 global macports::prefix 2178 set indexdir [file dirname [macports::getindex $source]] 2179 if {[catch {system "${macports::prefix}/bin/portindex $indexdir"}]} { 2180 ui_error "updating PortIndex for $source failed" 2182 set any_needed_portindex 1 2183 if {![info exists options(no_reindex)]} { 2184 global macports::prefix 2185 set indexdir [file dirname [macports::getindex $source]] 2186 if {[catch {system "${macports::prefix}/bin/portindex $indexdir"}]} { 2187 ui_error "updating PortIndex for $source failed" 2188 } 2181 2189 } 2182 2190 } … … 2922 2930 } 2923 2931 2924 # syncing ports tree.2925 if {![info exists options(ports_selfupdate_nosync)] || $options(ports_selfupdate_nosync) != "yes"} {2926 ui_msg "---> Updating the ports tree"2927 if {[catch {mportsync $optionslist} result]} {2928 return -code error "Couldn't sync the ports tree: $result"2929 }2930 }2931 2932 2932 # are we syncing a tarball? (implies detached signature) 2933 2933 set is_tarball 0 … … 3018 3018 # check if we we need to rebuild base 3019 3019 set comp [rpm-vercomp $macports_version_new $macports::autoconf::macports_version] 3020 3021 # syncing ports tree. 3022 if {![info exists options(ports_selfupdate_nosync)] || $options(ports_selfupdate_nosync) != "yes"} { 3023 ui_msg "---> Updating the ports tree" 3024 if {$comp > 0} { 3025 # updated portfiles potentially need new base to parse - tell sync to try to 3026 # use prefabricated PortIndex files and signal if it couldn't 3027 lappend optionslist no_reindex 1 needed_portindex_var needed_portindex 3028 } 3029 if {[catch {mportsync $optionslist} result]} { 3030 return -code error "Couldn't sync the ports tree: $result" 3031 } 3032 } 3033 3020 3034 if {$use_the_force_luke == "yes" || $comp > 0} { 3021 3035 if {[info exists options(ports_dryrun)] && $options(ports_dryrun) == "yes"} { … … 3085 3099 3086 3100 if {![info exists options(ports_selfupdate_nosync)] || $options(ports_selfupdate_nosync) != "yes"} { 3087 ui_msg "\nThe ports tree has been updated. To upgrade your installed ports, you should run" 3088 ui_msg " port upgrade outdated" 3101 if {[info exists needed_portindex]} { 3102 ui_msg "Not all sources could be fully synced using the old version of MacPorts." 3103 ui_msg "Please run selfupdate again now that MacPorts base has been updated." 3104 } else { 3105 ui_msg "\nThe ports tree has been updated. To upgrade your installed ports, you should run" 3106 ui_msg " port upgrade outdated" 3107 } 3089 3108 } 3090 3109 -
branches/release_2_0/base/src/pextlib1.0/sha2.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/release_2_0/base/src/pextlib1.0/sha2.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/release_2_0/base/src/pextlib1.0/sha256cmd.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/release_2_0/base/src/pextlib1.0/sha256cmd.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/release_2_0/base/src/registry2.0/receipt_sqlite.tcl
- Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset
for help on using the changeset viewer.

