[MacPorts] #12596: "list must have an even number of elements"
MacPorts
noreply at macports.org
Mon Oct 13 20:47:24 PDT 2008
#12596: "list must have an even number of elements"
--------------------------------------+-------------------------------------
Reporter: david.reitter at gmail.com | Owner: mww at macports.org
Type: defect | Status: assigned
Priority: Normal | Milestone: MacPorts base bugs
Component: base | Version: 1.5.0
Resolution: | Keywords:
Port: |
--------------------------------------+-------------------------------------
Comment(by chris at 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
More information about the macports-tickets
mailing list