From f934ca8a0991e044e4a045ee6f0c9aa47db2feb8 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Thu, 24 Jan 2008 12:45:36 +0000 Subject: [PATCH] reset self.oldprogress at every uploadFile call git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1093 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/entropy.py b/libraries/entropy.py index 560a1b6dc..aadcb6390 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -4132,6 +4132,8 @@ class FtpInterface: def uploadFile(self,file,ascii = False): + self.oldprogress = 0.0 + def uploadFileAndUpdateProgress(buf): self.updateProgress(len(buf)) @@ -4178,6 +4180,8 @@ class FtpInterface: def downloadFile(self,filepath,downloaddir,ascii = False): + self.oldprogress = 0.0 + def downloadFileStoreAndUpdateProgress(buf): # writing file buffer f.write(buf)