iter_gog_paths
Alexandre Detiste
alexandre.detiste at gmail.com
Mon Oct 26 11:19:08 UTC 2015
> > > Adding generic .deb & .tar.gz support like generic .zip support is
> > maybe a nice-to-have.
> >
> > Yes, if we can do it without duplicating too much code.
>
> It's about replaying on consider_tar_stream() the same changes done on consider_zip() previously
>
> http://anonscm.debian.org/cgit/pkg-games/game-data-packager.git/commit/game_data_packager/__init__.py?id=6bfbcfcca72f2751e538a8ad57cec0ba362aab6a
> http://anonscm.debian.org/cgit/pkg-games/game-data-packager.git/commit/game_data_packager/__init__.py?id=297976dbb300641c0f13c238ebdc42847afbbef6
Fuuuu...
I now remember why it didn't worked back then, still have no clue 6 months later.
./run atlantis -d /tmp --no-search --no-compress --no-download /home/tchet/gdp/indi/gog_indiana_jones_and_the_fate_of_atlantis_french_1.1.0.24.deb
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/tchet/git/game-data-packager/game_data_packager/__main__.py", line 21, in <module>
run_command_line()
File "/home/tchet/git/game-data-packager/game_data_packager/__init__.py", line 1215, in run_command_line
task.run_command_line(parsed)
File "/home/tchet/git/game-data-packager/game_data_packager/build.py", line 1908, in run_command_line
binary_executables=args.binary_executables)
File "/home/tchet/git/game-data-packager/game_data_packager/build.py", line 1856, in look_for_files
self.consider_file_or_dir(arg)
File "/home/tchet/git/game-data-packager/game_data_packager/build.py", line 647, in consider_file_or_dir
self.consider_file(path, True)
File "/home/tchet/git/game-data-packager/game_data_packager/build.py", line 609, in consider_file
self.consider_tar_stream(path, tar)
File "/home/tchet/git/game-data-packager/game_data_packager/build.py", line 830, in consider_tar_stream
progress=(entry.size > QUITE_LARGE))
File "/home/tchet/git/game-data-packager/game_data_packager/build.py", line 131, in from_file
return cls.from_concatenated_files(name, [f], write_to, size, progress)
File "/home/tchet/git/game-data-packager/game_data_packager/build.py", line 165, in from_concatenated_files
blob = f.read(io.DEFAULT_BUFFER_SIZE)
File "/usr/lib/python3.4/tarfile.py", line 704, in readinto
buf = self.read(len(b))
File "/usr/lib/python3.4/tarfile.py", line 692, in read
self.fileobj.seek(offset + (self.position - start))
File "/usr/lib/python3.4/tarfile.py", line 520, in seek
raise StreamError("seeking backwards is not allowed")
tarfile.StreamError: seeking backwards is not allowed
More information about the Pkg-games-devel
mailing list