Bug#776540: game-data-packager: please add support for games working with gemrbd engine

Alexandre Detiste alexandre.detiste at gmail.com
Sun Oct 4 19:34:20 UTC 2015


Le dimanche 4 octobre 2015, 21:11:56 Markus Koschany a écrit :
> Am 04.10.2015 um 18:22 schrieb Simon McVittie:
> [...]
> > So we could say that mentioning
> > 
> >     doom.wad?1.1
> > 
> > in a file list implies the equivalent of this:
> > 
> >     files:
> >       doom.wad?1.1:
> >         install_as: doom.wad
> > 
> > unless a different look_for or install_as value is configured?
> 
> That would be a nice shortcut.

And it's a one-line change...

I pushed this + updated definition for Soltys game as a sample.

--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -54,7 +54,7 @@ class WantedFile(HashedFile):
         self.distinctive_name = True
         self.distinctive_size = False
         self.download = None
-        self.install_as = name
+        self.install_as = name.split('?')[0]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20151004/b22c5ff9/attachment-0001.sig>


More information about the Pkg-games-devel mailing list