reset self.oldprogress at every uploadFile call

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1093 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-01-24 12:45:36 +00:00
parent 655ff0fb79
commit f934ca8a09

View File

@@ -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)