Author: peterw
Date: 2005-03-05 01:41:46 -0500 (Sat, 05 Mar 2005)
New Revision: 41465

Modified:
   trunk/mbuild/ChangeLog
   trunk/mbuild/Monkeywrench/ChangeLog
   trunk/mbuild/Monkeywrench/Monkeywrench/WrenchOperations.cs
   trunk/mbuild/mbuild/ChangeLog
   trunk/mbuild/mbuild/mbuild.cs
Log:
2005-03-05  Peter Williams  <[EMAIL PROTECTED]>

        [ skeleton for last commmit]

        * Update a whole bunch of stuff: introduce CompositeResults, make it
        so that everything is cool and we can finally install debug info.
        
2005-03-05  Peter Williams  <[EMAIL PROTECTED]>

        * Monkeywrench/WrenchOperations.cs (FindInstallCompatibleResult):
        Take a logger arg, log the error.
        (Install): Pass the logger, set location.

2005-03-05  Peter Williams  <[EMAIL PROTECTED]>

        * mbuild.cs (DescribeInstall): Let the compat finder report the error 
if necessary.
        Pass it a logger, set location.



Modified: trunk/mbuild/ChangeLog
===================================================================
--- trunk/mbuild/ChangeLog      2005-03-05 06:10:53 UTC (rev 41464)
+++ trunk/mbuild/ChangeLog      2005-03-05 06:41:46 UTC (rev 41465)
@@ -1,3 +1,8 @@
+2005-03-05  Peter Williams  <[EMAIL PROTECTED]>
+
+       * Update a whole bunch of stuff: introduce CompositeResults, make it
+       so that everything is cool and we can finally install debug info.
+       
 2005-01-19  Peter Williams  <[EMAIL PROTECTED]>
 
        * Languages.CSharp.bundle: Unused variable warning.

Modified: trunk/mbuild/Monkeywrench/ChangeLog
===================================================================
--- trunk/mbuild/Monkeywrench/ChangeLog 2005-03-05 06:10:53 UTC (rev 41464)
+++ trunk/mbuild/Monkeywrench/ChangeLog 2005-03-05 06:41:46 UTC (rev 41465)
@@ -1,3 +1,9 @@
+2005-03-05  Peter Williams  <[EMAIL PROTECTED]>
+
+       * Monkeywrench/WrenchOperations.cs (FindInstallCompatibleResult):
+       Take a logger arg, log the error.
+       (Install): Pass the logger, set location.
+
 2005-01-19  Peter Williams  <[EMAIL PROTECTED]>
 
        * Monkeywrench/WrenchProject.cs (GetRawCachedValue): Function to get

Modified: trunk/mbuild/Monkeywrench/Monkeywrench/WrenchOperations.cs
===================================================================
--- trunk/mbuild/Monkeywrench/Monkeywrench/WrenchOperations.cs  2005-03-05 
06:10:53 UTC (rev 41464)
+++ trunk/mbuild/Monkeywrench/Monkeywrench/WrenchOperations.cs  2005-03-05 
06:41:46 UTC (rev 41465)
@@ -111,7 +111,7 @@
                        return false;
                }
 
-               public static Result FindInstallCompatibleResult (Result res, 
IResultInstaller iri) {
+               public static Result FindInstallCompatibleResult (Result res, 
IResultInstaller iri, IBuildLogger logger) {
                        // Check types. Take into account CompositeResults
                        // (and composites of composites, etc.)
 
@@ -134,8 +134,10 @@
                                res = cr.Default;
                        }
 
-                       if (gotit == false)
+                       if (gotit == false) {
+                               logger.Error (2031, "Trying to install result 
with incompatible installer", iri.OtherType.ToString ());
                                return null;
+                       }
 
                        return res;
                }
@@ -155,16 +157,14 @@
                                // error already reported
                                return true;
 
-                       res = FindInstallCompatibleResult (res, iri);
+                       bs.Logger.SetLocation (bs.FullName);
+                       res = FindInstallCompatibleResult (res, iri, bs.Logger);
+                       bs.Logger.SetLocation (null);
 
-                       if (res == null) {
-                               bs.Logger.SetLocation (bs.FullName);
-                               bs.Logger.Error (2031, "Trying to install 
result with incompatible installer", iri.OtherType.ToString ());
-                               bs.Logger.SetLocation (null);
+                       if (res == null)
                                return true;
-                       }
 
-                       // Ok let's do it.
+                       // Ok, let's do it.
 
                        try {
                                bs.Logger.Log ("operation.install", 
bs.FullName);

Modified: trunk/mbuild/mbuild/ChangeLog
===================================================================
--- trunk/mbuild/mbuild/ChangeLog       2005-03-05 06:10:53 UTC (rev 41464)
+++ trunk/mbuild/mbuild/ChangeLog       2005-03-05 06:41:46 UTC (rev 41465)
@@ -1,3 +1,8 @@
+2005-03-05  Peter Williams  <[EMAIL PROTECTED]>
+
+       * mbuild.cs (DescribeInstall): Let the compat finder report the error 
if necessary.
+       Pass it a logger, set location.
+
 2005-01-19  Peter Williams  <[EMAIL PROTECTED]>
 
        * mbuild.cs (BeforeCleanEvent): Print a marker when cleaning.

Modified: trunk/mbuild/mbuild/mbuild.cs
===================================================================
--- trunk/mbuild/mbuild/mbuild.cs       2005-03-05 06:10:53 UTC (rev 41464)
+++ trunk/mbuild/mbuild/mbuild.cs       2005-03-05 06:41:46 UTC (rev 41465)
@@ -274,13 +274,12 @@
                        // error already reported
                        return true;
                
-               res = WrenchOperations.FindInstallCompatibleResult (res, iri);
-               if (res == null) {
-                       bs.Logger.SetLocation (bs.FullName);
-                       bs.Logger.Error (2031, "Trying to install result with 
incompatible installer", iri.OtherType.ToString ());
-                       bs.Logger.SetLocation (null);
+               bs.Logger.SetLocation (bs.FullName);
+               res = WrenchOperations.FindInstallCompatibleResult (res, iri, 
bs.Logger);
+               bs.Logger.SetLocation (null);
+               
+               if (res == null)
                        return true;
-               }
                                
                Console.WriteLine (" + {0}", iri.DescribeAction (res, 
bs.Context));
                return false;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to