10a01010bb
We can't wait for tar next volume prompt using stderr.readline(), because tar don't output EOL marker after this prompt. The other way would be switching file descriptor to non-blocking mode and using lower level os.read(), but this looks like more error-prone way (races...). So change idea of handling such archives: after switching to next archive volume, simply send '\n' to tar (which will receive when needed). When getting "*.000" file, assume that previous archive was over and wait for previous tar process. Then start the new one. Also don't give explicit tape length, only turn multi-volume mode on. So will correctly handle all multi-volume archives, regardless of its size. |
||
---|---|---|
.. | ||
__init__.py | ||
.gitignore | ||
guihelpers.py | ||
qubes.py | ||
qubesutils.py |