[63419] trunk/base/src/macports1.0/macports.tcl

jmr at macports.org jmr at macports.org
Thu Feb 4 09:34:11 PST 2010


Revision: 63419
          http://trac.macports.org/changeset/63419
Author:   jmr at macports.org
Date:     2010-02-04 09:34:09 -0800 (Thu, 04 Feb 2010)
Log Message:
-----------
error when an unknown registry format is requested

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2010-02-04 17:17:25 UTC (rev 63418)
+++ trunk/base/src/macports1.0/macports.tcl	2010-02-04 17:34:09 UTC (rev 63419)
@@ -590,7 +590,11 @@
 
     # Format for receipts, can currently be either "flat" or "sqlite"
     if {[info exists portdbformat]} {
-        set registry.format receipt_${portdbformat}
+        if {$portdbformat == "flat" || $portdbformat == "sqlite"} {
+            set registry.format receipt_${portdbformat}
+        } else {
+            return -code error "unknown registry format '$portdbformat' set in macports.conf"
+        }
     } else {
         set registry.format receipt_flat
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100204/347018d8/attachment.html>


More information about the macports-changes mailing list