SF.net SVN: gar:[23440] csw/mgar/gar/v2/lib/python/chkdbcat.py

guengel at users.sourceforge.net guengel at users.sourceforge.net
Sun Apr 20 18:43:31 CEST 2014


Revision: 23440
          http://sourceforge.net/p/gar/code/23440
Author:   guengel
Date:     2014-04-20 16:43:24 +0000 (Sun, 20 Apr 2014)
Log Message:
-----------
lib/python/chkdbcat.py: Added required catrel, arch, and osrel arguments to TimestampRecord.get_notified()

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/chkdbcat.py

Modified: csw/mgar/gar/v2/lib/python/chkdbcat.py
===================================================================
--- csw/mgar/gar/v2/lib/python/chkdbcat.py	2014-04-20 15:53:02 UTC (rev 23439)
+++ csw/mgar/gar/v2/lib/python/chkdbcat.py	2014-04-20 16:43:24 UTC (rev 23440)
@@ -193,7 +193,7 @@
 
             return email in self.__ts_by_catalog[catkey]['notified']
 
-      def get_notified(self):
+      def get_notified(self, catrel, arch, osrel):
             catkey = (catrel, arch, osrel)
 
             assert 'notified' in self.__ts_by_catalog[catkey]
@@ -462,8 +462,10 @@
                         rightnow = datetime.datetime.now()
                         with self.__timestamp_record:
                               try:
-                                    [self.notify_unbroken(rightnow, addr) for addr in
-                                     self.__timestamp_record.get_notified()]
+                                    [self.notify_unbroken(rightnow,
+                                                          addr) for addr in
+                                     self.__timestamp_record.get_notified(self._catrel,
+                                                                          self._arch, self._osrel)]
                               except Exception as ex:
                                     logging.error("Error notifying about unbroken catalog: %s",
                                                   repr(ex))

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list