提交 954ecca7 编写于 作者: J Joerg Jaspert

Check if we got the suite back before using it

Signed-off-by: NJoerg Jaspert <joerg@debian.org>
上级 12784631
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册