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 c391f509ea8787f11b0ebee6e3a013bb4dc56b40 Author: Simon McVittie <[email protected]> Date: Wed Dec 27 17:10:40 2017 +0000 make_template: Rename local GameData object to Template Signed-off-by: Simon McVittie <[email protected]> --- game_data_packager/make_template.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py index 8b0e34e..6aa1645 100644 --- a/game_data_packager/make_template.py +++ b/game_data_packager/make_template.py @@ -137,8 +137,7 @@ def is_runtime(path): return True return False -class GameData(object): - '''simplified object with only one package per game''' +class Template(object): def __init__(self): self.longname = None self.try_repack_from = [] @@ -749,29 +748,29 @@ def main(): do_flacsums(args.args[0],args.lower) return - gamedata = GameData() + template = Template() # "./run make-template setup_<game>.exe gog_<game>.deb" # will merge files lists for arg in args.args: basename = os.path.basename(arg) if os.path.isdir(arg): - gamedata.add_one_dir(arg.rstrip('/'), args.lower, lang=guess_lang(arg)) + template.add_one_dir(arg.rstrip('/'), args.lower, lang=guess_lang(arg)) elif arg.endswith('.deb'): - gamedata.add_one_deb(arg,args.lower) + template.add_one_deb(arg,args.lower) if basename.startswith('gog_'): - gamedata.add_archive(arg, lower=args.lower) - gamedata.files['files'][basename] = dict(unpack=dict(format='deb'), + template.add_archive(arg, lower=args.lower) + template.files['files'][basename] = dict(unpack=dict(format='deb'), provides=['<stuff>']) elif basename.startswith('setup_') and arg.endswith('.exe'): if not which('innoextract'): exit('Install innoextract') - gamedata.add_one_innoextract(arg, lower=args.lower) + template.add_one_innoextract(arg, lower=args.lower) elif basename.startswith('gog_') and arg.endswith('.sh'): - gamedata.add_one_gog_sh(arg) + template.add_one_gog_sh(arg) else: - gamedata.add_archive(arg, lower=args.lower) - gamedata.print_yaml() + template.add_archive(arg, lower=args.lower) + template.print_yaml() if __name__ == '__main__': -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

