Re: [MacPorts] #12596: "list must have an even number of elements"
#12596: "list must have an even number of elements" --------------------------------------+------------------------------------- Reporter: david.reitter@gmail.com | Owner: mww@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.5.0 Resolution: | Keywords: Port: | --------------------------------------+------------------------------------- Comment(by chris@behanna.org): Bah. Check the attachments, and here's a format that's readable: {{{ --- base/src/registry1.0/receipt_flat.tcl.orig 2008-10-13 23:34:15.000000000 -0400 +++ base/src/registry1.0/receipt_flat.tcl 2008-10-13 23:43:08.000000000 -0400 @@ -181,7 +181,9 @@ # Remove any line starting with # while {[regexp "(^|\n)#.*\n(.*)\$" $receipt_contents match foo receipt_contents]} {} - array set receipt_$ref $receipt_contents + if { [catch {array set receipt_$ref $receipt_contents} rcpterr] } { + error "Malformed package receipt for $name $version $revision $variants: $rcpterr" + } } else { # This is old Images format }}} -- Ticket URL: <http://trac.macports.org/ticket/12596#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts