diff -b -u -w -r1.98 darwinports.tcl
old
|
new
|
|
669 | 669 | if {[string length $x]} { |
670 | 670 | set matchfile [lindex $x 0] |
671 | 671 | } else { |
| 672 | # check Installer.app receipts also ... |
| 673 | set x [glob -nocomplain [file join /Library/Receipts ${portname}-*]] |
| 674 | if {[string length $x]} { |
| 675 | set matchfile [lindex $x 0] |
| 676 | } else { |
672 | 677 | set matchfile "" |
673 | 678 | } |
| 679 | } |
674 | 680 | } else { |
675 | 681 | set matchfile [file join ${darwinports::registry.path} ${portname}-${portversion}] |
676 | 682 | } |
… |
… |
|
685 | 691 | } |
686 | 692 | if {[file exists ${matchfile}.bz2]} { |
687 | 693 | return ${matchfile}.bz2 |
| 694 | } |
| 695 | # check Installer.app receipts also ... |
| 696 | set matchfile [file join /Library/Receipts ${portname}-${portversion}] |
| 697 | if {[file exists ${matchfile}.pkg]} { |
| 698 | return ${matchfile}.pkg |
688 | 699 | } |
689 | 700 | return "" |
690 | 701 | } |
diff -b -u -w -r1.45 port.tcl
old
|
new
|
|
274 | 274 | set shortname [file rootname [file tail $rfile]] |
275 | 275 | set fd [open "|bzcat -q $rfile" r] |
276 | 276 | } else { |
| 277 | if {[file extension $rfile] == ".pkg"} { |
| 278 | set shortname [file rootname [file tail $rfile]] |
| 279 | puts "Port registered with Installer.app, listing BOM instead" |
| 280 | puts "Contents of ${shortname} BOM" |
| 281 | if {![catch {exec lsbom -f -s [file join $rfile Contents/Archive.bom]} bom_output]} { |
| 282 | foreach f [split $bom_output \n] { |
| 283 | puts "\t[string trimleft $f .]" |
| 284 | } |
| 285 | } else { |
| 286 | puts "Port failed: Could not list BOM for ${shortname}" |
| 287 | exit 1 |
| 288 | } |
| 289 | return |
| 290 | } else { |
277 | 291 | set shortname [file tail $rfile] |
278 | 292 | set fd [open $rfile r] |
| 293 | } |
279 | 294 | } |
280 | 295 | set entry [read $fd] |
281 | 296 | # kind of a corner case but I ran into it testing |
diff -b -u -w -r1.29 portuninstall.tcl
old
|
new
|
|
61 | 61 | |
62 | 62 | set rfile [registry_exists $portname $portversion] |
63 | 63 | if {[string length $rfile]} { |
| 64 | if {[regexp .pkg$ $rfile]} { |
| 65 | return -code error [msgcat::mc "Uninstall failed: Port registered with Installer.app, must use Uninstaller.app to uninstall"] |
| 66 | } |
64 | 67 | if {[regexp .bz2$ $rfile]} { |
65 | 68 | set fd [open "|bunzip2 -c $rfile" r] |
66 | 69 | } else { |