提交 63e1b528 编写于 作者: M Mark Hymers

Merge remote branch 'ftpmaster/master'

......@@ -3005,11 +3005,11 @@ __all__.append('get_suite')
################################################################################
# TODO: should be removed because the implementation is too trivial
@session_wrapper
def get_suite_architectures(suite, skipsrc=False, skipall=False, session=None):
"""
Returns list of Architecture objects for given C{suite} name
Returns list of Architecture objects for given C{suite} name. The list is
empty if suite does not exist.
@type suite: str
@param suite: Suite name to search for
......@@ -3030,7 +3030,10 @@ def get_suite_architectures(suite, skipsrc=False, skipall=False, session=None):
@return: list of Architecture objects for the given name (may be empty)
"""
try:
return get_suite(suite, session).get_architectures(skipsrc, skipall)
except AttributeError:
return []
__all__.append('get_suite_architectures')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册