[game-data-packager] 05/16: umod unpacker: print a bit of metadata before printdir()
Simon McVittie
smcv at debian.org
Fri Jan 8 09:14:02 UTC 2016
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 aa36a50ee04ff124c11b16b77411d0dee3525a35
Author: Simon McVittie <smcv at debian.org>
Date: Thu Jan 7 10:44:22 2016 +0000
umod unpacker: print a bit of metadata before printdir()
---
game_data_packager/unpack/umod.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/game_data_packager/unpack/umod.py b/game_data_packager/unpack/umod.py
index f6eb9c9..cbc1538 100644
--- a/game_data_packager/unpack/umod.py
+++ b/game_data_packager/unpack/umod.py
@@ -478,6 +478,23 @@ class Umod(StreamUnpackable):
# umods are always seekable
return True
+ def printdir(self):
+ print('# Product:', self.product)
+ print('# Version:', self.version)
+ print('# Requires:')
+
+ for k, r in sorted(self.requirements.items()):
+ print('# [%s] %r version %r' % (k, r.product, r.version))
+
+ if 'System/Manifest.int' in self.entries:
+ print('# Manifest text (international/English):')
+ reader = self.open('System/Manifest.int')
+
+ for line in reader:
+ print('#', line.decode('windows-1252').rstrip('\r\n'))
+
+ super(Umod, self).printdir()
+
def is_umod(path_or_file):
try:
_open(path_or_file)
--
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