diff -b -u -w -r1.96 darwinports.tcl
old
|
new
|
|
660 | 660 | if {[string length $x]} { |
661 | 661 | set matchfile [lindex $x 0] |
662 | 662 | } else { |
| 663 | # check Installer.app receipts also ... |
| 664 | set x [glob -nocomplain [file join /Library/Receipts ${portname}-*]] |
| 665 | if {[string length $x]} { |
| 666 | set matchfile [lindex $x 0] |
| 667 | } else { |
663 | 668 | set matchfile "" |
664 | 669 | } |
| 670 | } |
665 | 671 | } else { |
666 | 672 | set matchfile [file join ${darwinports::registry.path} ${portname}-${portversion}] |
667 | 673 | } |
… |
… |
|
676 | 682 | } |
677 | 683 | if {[file exists ${matchfile}.bz2]} { |
678 | 684 | return ${matchfile}.bz2 |
| 685 | } |
| 686 | # check Installer.app receipts also ... |
| 687 | set matchfile [file join /Library/Receipts ${portname}-${portversion}] |
| 688 | if {[file exists ${matchfile}.pkg]} { |
| 689 | return ${matchfile}.pkg |
679 | 690 | } |
680 | 691 | return "" |
681 | 692 | } |
diff -b -u -w -r1.8 portcontents.tcl
old
|
new
|
|
47 | 47 | if {[regexp .bz2$ $rfile]} { |
48 | 48 | set fd [open "|bunzip2 -c $rfile" r] |
49 | 49 | } else { |
| 50 | if {[regexp .pkg$ $rfile]} { |
| 51 | ui_warn "Port registered with Installer.app, listing BOM instead" |
| 52 | ui_msg "[format [msgcat::mc "Contents of %s-%s BOM"] ${portname} ${portversion}]" |
| 53 | if {![catch {exec lsbom -f -s [file join $rfile Contents/Archive.bom]} bom_output]} { |
| 54 | foreach f [split $bom_output \n] { |
| 55 | ui_msg "\t$f" |
| 56 | } |
| 57 | } else { |
| 58 | return -code error "[format [msgcat::mc "Could not list BOM for %s-%s"] ${portname} ${portversion}]" |
| 59 | } |
| 60 | return |
| 61 | } else { |
50 | 62 | set fd [open $rfile r] |
| 63 | } |
51 | 64 | } |
52 | 65 | set entry [read $fd] |
53 | 66 | close $fd |
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 { |