[Vm-dev] [commit][3641] Provide a handler for the " About to serialize empty diffy version" warning

commits at squeakvm.org commits at squeakvm.org
Tue Mar 8 22:21:52 UTC 2016


Revision: 3641
Author:   eliot
Date:     2016-03-08 14:21:51 -0800 (Tue, 08 Mar 2016)
Log Message:
-----------
Provide a handler for the "About to serialize empty diffy version" warning
during update.

Modified Paths:
--------------
    branches/Cog/image/UpdateSqueakTrunkImage.st

Modified: branches/Cog/image/UpdateSqueakTrunkImage.st
===================================================================
--- branches/Cog/image/UpdateSqueakTrunkImage.st	2016-03-08 21:48:37 UTC (rev 3640)
+++ branches/Cog/image/UpdateSqueakTrunkImage.st	2016-03-08 22:21:51 UTC (rev 3641)
@@ -1,7 +1,14 @@
-[[MCMcmUpdater
-		defaultUpdateURL: 'http://source.squeak.org/trunk';
-		updateFromServer] valueSupplyingAnswer: true]
-	on: Deprecation
-	do: [:ex| ex resume: nil].
+[[[MCMcmUpdater
+			defaultUpdateURL: 'http://source.squeak.org/trunk';
+			updateFromServer] valueSupplyingAnswer: true]
+		on: Deprecation
+		do: [:ex| ex resume: nil]]
+	on: Warning
+	do: [:ex| | text |
+		text := ex messageText.
+		((text beginsWith: 'This package depends on the following classes')
+		 or: [text beginsWith: 'About to serialize an empty diffy version.']) ifFalse:
+			[ex pass].
+		ex resume].
 
 Smalltalk snapshot: true andQuit: true


More information about the Vm-dev mailing list