[Checkins] SVN: Sandbox/adamg/zope.wineggbuilder/trunk/ fix some status msgs

Adam Groszer agroszer at gmail.com
Wed Jun 16 10:09:52 EDT 2010


Log message for revision 113542:
  fix some status msgs

Changed:
  U   Sandbox/adamg/zope.wineggbuilder/trunk/rackspace.ini
  U   Sandbox/adamg/zope.wineggbuilder/trunk/src/zope/wineggbuilder/build.py

-=-
Modified: Sandbox/adamg/zope.wineggbuilder/trunk/rackspace.ini
===================================================================
--- Sandbox/adamg/zope.wineggbuilder/trunk/rackspace.ini	2010-06-16 14:09:44 UTC (rev 113541)
+++ Sandbox/adamg/zope.wineggbuilder/trunk/rackspace.ini	2010-06-16 14:09:52 UTC (rev 113542)
@@ -24,11 +24,11 @@
 fileEnding = py2.6-win-amd64.egg
 
 
-[ZODB3]
-package = ZODB3
-minVersion =
-maxVersion =
-targets = py24_32 py25_32
+#[ZODB3]
+#package = ZODB3
+#minVersion =
+#maxVersion =
+#targets = py24_32 py25_32
 
 [ZODB3_26]
 package = ZODB3

Modified: Sandbox/adamg/zope.wineggbuilder/trunk/src/zope/wineggbuilder/build.py
===================================================================
--- Sandbox/adamg/zope.wineggbuilder/trunk/src/zope/wineggbuilder/build.py	2010-06-16 14:09:44 UTC (rev 113541)
+++ Sandbox/adamg/zope.wineggbuilder/trunk/src/zope/wineggbuilder/build.py	2010-06-16 14:09:52 UTC (rev 113542)
@@ -75,6 +75,7 @@
         if self.options.dryrun:
             LOGGER.info("Dry run, no upload")
             command = command.replace('upload', '')
+            status.setStatus(package, version, "dryrun", self)
 
         LOGGER.debug('Running: %s\nIn: %s', command, sourceFolder)
 
@@ -91,6 +92,7 @@
             if 'failed' in output.lower():
                 LOGGER.info("Something was wrong with the command. Output: %s",
                             output)
+                status.setStatus(package, version, "failed", self)
 
             if 'running upload' in output \
                 and 'Submitting' in output \
@@ -104,7 +106,7 @@
             #prepare for the worst
             LOGGER.exception("An error occurred while running the build command")
             #continue without bailing out
-            status.setStatus(package, version, "err", self)
+            status.setStatus(package, version, "error", self)
 
         if tmpfile:
             os.remove(tmpfile)
@@ -199,7 +201,7 @@
                 if needBuild:
                     needs.append(target)
                 else:
-                    status.setStatus(self, version, "ex", target)
+                    status.setStatus(self, version, "existed", target)
 
             if needs:
                 tmpfolder = tempfile.mkdtemp('wineggbuilder')
@@ -303,7 +305,8 @@
 
         LOGGER.info('Done.')
 
-        status.log()
+        if self.options.status:
+            status.log()
 
 
 def main(args=None):



More information about the checkins mailing list