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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user