]> err.no Git - dak/commitdiff
Check if we got the suite back before using it
authorJoerg Jaspert <joerg@debian.org>
Mon, 20 Sep 2010 06:05:51 +0000 (08:05 +0200)
committerJoerg Jaspert <joerg@debian.org>
Mon, 20 Sep 2010 06:05:51 +0000 (08:05 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/queue.py

index 2235f75110853f38acd9b4b7abd842ccf3bfde39..3bf0a72ad77a376ef18119eeee5579b811e999f6 100755 (executable)
@@ -1918,6 +1918,7 @@ distribution."""
 
         for dist in self.pkg.changes["distribution"].keys():
             suite = get_suite(dist)
+            if suite is None: continue
             announce_list = suite.announce
             if announce_list == "" or lists_done.has_key(announce_list):
                 continue
@@ -2366,7 +2367,7 @@ distribution."""
 
         # Override suite name; used for example with proposed-updates
         oldsuite = get_suite(suite, session)
-        if oldsuite.overridesuite:
+        if (not oldsuite is None) and oldsuite.overridesuite:
             suite = oldsuite.overridesuite
 
         result = get_override(package, suite, component, file_type, session)