diff options
Diffstat (limited to 'backend/magiback')
-rwxr-xr-x | backend/magiback | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/magiback b/backend/magiback index 7c56253..904afcf 100755 --- a/backend/magiback +++ b/backend/magiback @@ -36,6 +36,9 @@ class Isodumper(raw_write.Dumper): <arg type='s' name='target' direction='in'/> <arg type='s' name='source' direction='in'/> </method> + <method name='get_sum'> + <arg type='s' name='source' direction='in'/> + </method> <method name='end'> <arg type='b' name='success' direction='out'/> <arg type='s' name='message' direction='out'/> @@ -61,6 +64,9 @@ class Isodumper(raw_write.Dumper): self.return_message = "" self.authorized_sender_read = set() self.authorized_sender_write = set() + self.sum_check = "" + self.sum_check_searched = False + self.signature_checked = False def do_write(self,source, target, size, dbus_context): self.finished.clear() @@ -99,6 +105,10 @@ class Isodumper(raw_write.Dumper): print("Unmounting") return self._do_unmount([device]) + def get_sum(self, source): + key_thread = threading.Thread(target=self._get_sum, args=(source,)) + key_thread.start() + def check_write(self,target, source): self.thread = threading.Thread(target=self._check_write, args=(target, source,)) self.thread.start() |