jhbuild r2683 - in trunk: . jhbuild/commands



Author: fpeters
Date: Mon Feb  2 11:12:10 2009
New Revision: 2683
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2683&view=rev

Log:
* jhbuild/commands/bot.py: declare bot attributes.



Modified:
   trunk/ChangeLog
   trunk/jhbuild/commands/bot.py

Modified: trunk/jhbuild/commands/bot.py
==============================================================================
--- trunk/jhbuild/commands/bot.py	(original)
+++ trunk/jhbuild/commands/bot.py	Mon Feb  2 11:12:10 2009
@@ -253,6 +253,13 @@
         from buildbot.process.properties import Properties
 
         class JhBuildSlave(BuildSlave):
+            contact_name = None
+            contact_email = None
+            url = None
+            distribution = None
+            architecture = None
+            version = None
+
             def load_extra_configuration(self, slaves_dir):
                 slave_xml_file = os.path.join(slaves_dir, self.slavename + '.xml')
                 if not os.path.exists(slave_xml_file):
@@ -273,7 +280,7 @@
                     try:
                         setattr(self, text_attribute, cfg.find(text_attribute).text)
                     except (AttributeError, ValueError):
-                        setattr(self, text_attribute, None)
+                        pass
 
         class JhBuildMaster(BuildMaster):
             jhbuild_config = config



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]