[27719] trunk/base/src/port1.0/portdestroot.tcl

source_changes at macosforge.org source_changes at macosforge.org
Sun Aug 12 13:58:37 PDT 2007


Revision: 27719
          http://trac.macosforge.org/projects/macports/changeset/27719
Author:   mww at macports.org
Date:     2007-08-12 13:58:37 -0700 (Sun, 12 Aug 2007)

Log Message:
-----------
make violations of the layout of the ports-filesystems non-fatal (for now), only issue warnings

Modified Paths:
--------------
    trunk/base/src/port1.0/portdestroot.tcl

Modified: trunk/base/src/port1.0/portdestroot.tcl
===================================================================
--- trunk/base/src/port1.0/portdestroot.tcl	2007-08-12 19:37:25 UTC (rev 27718)
+++ trunk/base/src/port1.0/portdestroot.tcl	2007-08-12 20:58:37 UTC (rev 27719)
@@ -252,7 +252,7 @@
 						www { }
 						Applications { }
 						Library { }
-						default { ui_error "violation by ${prefix}/${c}"
+						default { ui_warn "violation by ${prefix}/${c}"
 							set mtree_violation "yes" }
 					}
 				}
@@ -261,7 +261,7 @@
 				switch ${b} {
 					Applications { ui_debug "port installs files in /Applications" }
 					Library { ui_debug "port installs files in /Library" }
-				default { ui_error "violation by /${b}"
+				default { ui_warn "violation by /${b}"
 					set mtree_violation "yes" }
 				}
 			}
@@ -269,7 +269,9 @@
 
 		# abort here only so all violations can be observed
 		if { ${mtree_violation} != "no" } {
-			error "mtree violation!"
+			ui_warn "[format [msgcat::mc "%s violates the layout of the ports-filesystems!"] [option portname]]"
+			ui_warn "Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases!"
+			# error "mtree violation!"
 		}
 	} else {
 		ui_warn "[format [msgcat::mc "%s requests to install files outside the common directory structure!"] [option portname]]"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070812/83ff856b/attachment.html


More information about the macports-changes mailing list