From a594af02dea10865eb048b9db1080e9af3455a0d Mon Sep 17 00:00:00 2001 From: Olivier MEDOC Date: Fri, 27 Sep 2013 09:47:33 +0200 Subject: [PATCH] backup: fix of a bug introduced in the qvm-backup-restore command by adding a progress_callback --- dom0/qvm-core/qubesutils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom0/qvm-core/qubesutils.py b/dom0/qvm-core/qubesutils.py index c705f476..b1d9f437 100644 --- a/dom0/qvm-core/qubesutils.py +++ b/dom0/qvm-core/qubesutils.py @@ -1377,6 +1377,10 @@ def restore_vm_dirs (backup_dir, backup_tmpdir, passphrase, vms_dirs, vms, vms_s self.print_callback("Finished extracting thread") + if progress_callback == None: + def progress_callback(data): + pass + to_extract = Queue() extract_proc = Extract_Worker(to_extract, backup_tmpdir, passphrase, encrypted, vms_size, print_callback, error_callback, progress_callback) extract_proc.start()