# HG changeset patch # User Sylvain Thénault # Date 1271342824 -7200 # Node ID 92e9efc8cad5b7485a1a6ccee7a55e8d83922b5e # Parent 6346f1fd0a506dd315f3774e4f734c93826c77bf don't fail on cube's pkginfo without __use__ diff -r 6346f1fd0a50 -r 92e9efc8cad5 cwctl.py --- a/cwctl.py Thu Apr 15 16:46:43 2010 +0200 +++ b/cwctl.py Thu Apr 15 16:47:04 2010 +0200 @@ -232,9 +232,11 @@ if not isinstance(use, dict): use = dict((key, None) for key in use) self.warnings.append('cube %s should define __depends_cubes__ as a dict not a list') - else: + elif hasattr(info, '__use__'): self.warnings.append('cube %s should define __depends_cubes__' % cube) use = dict((key, None) for key in info.__use__) + else: + continue for name, constraint in use.items(): self.constraints.setdefault(name,set()) if constraint: