backups: fix error reporting, do not report EOF as an error

Do not report main thread error (notified as "ERROR" file) as
ExtractWorker error.
This commit is contained in:
Marek Marczykowski-Górecki 2014-03-08 03:50:08 +01:00
parent c430355a5b
commit 4a56b65b59

View File

@ -872,7 +872,8 @@ class ExtractWorker(Process):
if self.tar2_process is not None:
if filename == "ERROR":
self.tar2_process.terminate()
if self.tar2_process.wait() != 0:
self.tar2_process.wait()
elif self.tar2_process.wait() != 0:
raise QubesException(
"ERROR: unable to extract files for {0}.{1}".
format(self.tar2_current_file,