[game-data-packager] 21/51: WantedFile.to_data: Improve handling of boolean attributes
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 633b71a40967b46186c8ed762b40491f6c410bb6
Author: Simon McVittie <smcv at debian.org>
Date: Wed Dec 27 16:39:40 2017 +0000
WantedFile.to_data: Improve handling of boolean attributes
Signed-off-by: Simon McVittie <smcv at debian.org>
---
game_data_packager/data.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/game_data_packager/data.py b/game_data_packager/data.py
index 18fae88..99eab49 100644
--- a/game_data_packager/data.py
+++ b/game_data_packager/data.py
@@ -266,9 +266,6 @@ class WantedFile(HashedFile):
for k in (
'alternatives',
- 'distinctive_size',
- 'executable',
- 'license',
'skip_hash_matching',
):
v = getattr(self, k)
@@ -299,7 +296,9 @@ class WantedFile(HashedFile):
ret[k] = v
for k in (
+ 'distinctive_size',
'doc',
+ 'executable',
'license',
):
if getattr(self, k):
--
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