Skip to content

Commit

Permalink
set_xcodecltversion: handle missing CLTs receipt
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Nov 18, 2024
1 parent cdd5020 commit dab32c5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/macports1.0/macports.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -836,10 +836,13 @@ proc macports::set_xcodecltversion {cachevar} {

upvar $cachevar cache
if {[dict exists $cache clt version] && [dict exists $cache clt mtime]
&& [dict exists $cache clt checkfile]
&& [file mtime [dict get $cache clt checkfile]] == [dict get $cache clt mtime]} {
set xcodecltversion [dict get $cache clt version]
return 0
&& [dict exists $cache clt checkfile]} {
set checkfile [dict get $cache clt checkfile]
if {[file exists $checkfile]
&& [file mtime $checkfile] == [dict get $cache clt mtime]} {
set xcodecltversion [dict get $cache clt version]
return 0
}
}

# Potential names for the CLTs pkg on different OS versions.
Expand Down

0 comments on commit dab32c5

Please sign in to comment.