[game-data-packager] 19/51: Package: If component is wrong, say which package this is
Simon McVittie
smcv at debian.org
Fri Dec 29 01:23:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch master
in repository game-data-packager.
commit ea2064c9ea6a03c4febe35ac4be3a48ac7921974
Author: Simon McVittie <smcv at debian.org>
Date: Tue Dec 26 18:30:26 2017 +0000
Package: If component is wrong, say which package this is
Signed-off-by: Simon McVittie <smcv at debian.org>
---
game_data_packager/data.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/game_data_packager/data.py b/game_data_packager/data.py
index 59410a4..8983227 100644
--- a/game_data_packager/data.py
+++ b/game_data_packager/data.py
@@ -664,8 +664,8 @@ class Package(object):
for port in ('debian', 'rpm', 'arch', 'fedora', 'mageia', 'suse'):
assert port not in data, 'use {deb: foo-dfsg, generic: foo} syntax'
- assert self.component in ('main', 'contrib', 'non-free', 'local')
- assert self.component == 'local' or 'license' in data
+ assert self.component in ('main', 'contrib', 'non-free', 'local'), self
+ assert self.component == 'local' or 'license' in data, self
assert self.section in ('games', 'doc'), 'unsupported'
assert type(self.langs) is list
assert type(self.mutually_exclusive) is bool
@@ -746,6 +746,9 @@ class Package(object):
elif self.section == 'doc':
self.data_type = 'documentation'
+ def __repr__(self):
+ return '<%s %r>' % (self.__class__.__name__, self.name)
+
@property
def aliases(self):
return self._aliases
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list