2015-10-04 18:22 GMT+02:00 Simon McVittie <s...@debian.org>: > We could have a heuristic like stripping some "extension" automatically > when determining look_for and install_as, but we'd have to use something > that is unlikely to appear in a genuine filename. > > ... > > I'd vaguely lean towards "?", which is vaguely reminiscent of HTTP > query-strings, is relatively obscure in YAML (unlike ":" which we use > all the time) > > doom.wad?1.1
That would be great. The '?' is already special-handled elsewhere in choose_mirror() to means that URL with this character can't be 'solid' file names, only a transaction that'll give a real file, with an other name. For example, https://docs.google.com/uc?export=download&id=0ByCRmO4G6HOoRWNjaS04VTlMbWc will give us "iortcw-1.42b-linux-x86.zip", but there will never be a file named "uc?export=download&id=0ByCRmO4G6HOoRWNjaS04VTlMbWc" in a local stash of patches/game demos that can be referenced with GDP_MIRROR. As these '?' are only visible in the "download:" tag, there's not conflict with the automatic stripping. >> Another problem: the English version ships >> >> data/AREA1700.BIF >> >> the German version >> >> Data/AREA1700.BIF > > g-d-p searches case-insensitively anyway, because the 99% case is that > the game was designed to run on Windows or DOS. maybe make-template heuristic should be refined to be lowercase by default, except with HTML + images documentation sets that goes in /usr/share/doc/<game>. I vaguely remeber that when browsing some documentation from a Quake or RTCW game; some image links were broken, because the files hadn't the right case; I have > >> I install the same file into the data directory >> (English version) or the Data directory (German version). > > Does gemrb really require you to do this? If you install either language > into the other directory (I'd use all-lower-case and move the German > version), does it work? > >> For the last issue symlinking would be an option but this is rather >> inconvenient when you have to process a lot of files like that. > > Or if gemrb is case-sensitive, can you install everything into 'data', > and use a single symlink Data -> data to accommodate the German version? > > S >