[game-data-packager] 01/01: tag fanmade games
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Mon Oct 12 09:08:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository game-data-packager.
commit ba076e47d86577f3e18960a259e7dfca0279d50e
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Mon Oct 12 11:08:27 2015 +0200
tag fanmade games
---
data/compet-n.yaml | 1 +
data/enclosure.yaml | 1 +
data/hank.yaml | 1 +
doc/tags.txt | 2 +-
game_data_packager/__init__.py | 5 ++++-
tools/stats.py | 2 +-
6 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/data/compet-n.yaml b/data/compet-n.yaml
index 71f8703..15b38d3 100644
--- a/data/compet-n.yaml
+++ b/data/compet-n.yaml
@@ -4,6 +4,7 @@ franchise: Doom
copyright: © 1995-2002 Various
plugin: doom_common
wiki: Compet-n
+fanmade: True
help_text: |
This is a selection of high-quality Doom and Doom II PWADS made
diff --git a/data/enclosure.yaml b/data/enclosure.yaml
index 405d583..6f57d3c 100644
--- a/data/enclosure.yaml
+++ b/data/enclosure.yaml
@@ -2,6 +2,7 @@
copyright: © 2004 Femo Duo Entertainment
plugin: scummvm_common
wiki: "AGIWiki/Enclosure"
+fanmade: True
help_text: |
This is a fan-made game, original website is down.
diff --git a/data/hank.yaml b/data/hank.yaml
index ee75e56..aef54de 100644
--- a/data/hank.yaml
+++ b/data/hank.yaml
@@ -3,6 +3,7 @@ longname: "Hank's Quest"
copyright: © 2002 Femo Duo Entertainment
plugin: scummvm_common
wiki: "AGIWiki/Hank%27s_Quest:_Victim_of_Society"
+fanmade: True
help_text: |
This is a fan-made game, original website is down.
diff --git a/doc/tags.txt b/doc/tags.txt
index b5e92a5..25fa3e1 100644
--- a/doc/tags.txt
+++ b/doc/tags.txt
@@ -1,7 +1,7 @@
-shortname: string (useless, = filename without '.yaml')
longname: string
franchise: string
copyright: string
+fanmade: bool
compress_deb: string/bool
aliases: list
engine: string
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 4ac8921..dbf785e 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -313,6 +313,9 @@ class GameData(object):
# The one-line copyright notice used to build debian/copyright
self.copyright = None
+ # Tag fanmade games so they don't screw up year * size regression
+ self.fanmade = False
+
# The game engine used to run the game (package name)
self.engine = None
@@ -361,7 +364,7 @@ class GameData(object):
# list: arbitrary options (e.g. -z9 -Zgz -Sfixed)
self.compress_deb = True
- for k in ('longname', 'copyright', 'compress_deb', 'help_text', 'disks',
+ for k in ('longname', 'copyright', 'compress_deb', 'help_text', 'disks', 'fanmade',
'engine', 'genre', 'missing_langs', 'franchise', 'wiki', 'wikibase',
'steam', 'gog', 'dotemu', 'origin', 'url_misc', 'wikipedia'):
if k in self.data:
diff --git a/tools/stats.py b/tools/stats.py
index b0c98fd..6a5381f 100755
--- a/tools/stats.py
+++ b/tools/stats.py
@@ -31,7 +31,7 @@ for name, game in load_games().items():
'game': name,
'year': int((package.copyright or game.copyright)[2:6]),
'type': package.type,
- 'fanmade': 'N',
+ 'fanmade': {True: 'Y'}.get(game.fanmade, 'N'),
'package': package.name,
'disks': package.disks or game.disks or 1,
'size_min': size_min,
--
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