diff options
author | simo <simo> | 2006-02-19 01:13:39 +0100 |
---|---|---|
committer | simo <simo> | 2006-02-19 01:13:39 +0100 |
commit | 11a246232ce9fae3f5db9935349b3a7635438a55 (patch) | |
tree | a6da8a3e8632fcafb180208233323ecea7d86e65 /tupkg/client | |
parent | 9cec008f707637d419bfc493843bdcf7f0a2aaae (diff) | |
download | aur-11a246232ce9fae3f5db9935349b3a7635438a55.tar.gz aur-11a246232ce9fae3f5db9935349b3a7635438a55.tar.xz |
progress patch from iphitus
Diffstat (limited to 'tupkg/client')
-rwxr-xr-x | tupkg/client/tupkg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tupkg/client/tupkg b/tupkg/client/tupkg index 021e647b..87ffac01 100755 --- a/tupkg/client/tupkg +++ b/tupkg/client/tupkg @@ -109,8 +109,15 @@ class ClientSocket: def sendFiles(self): for i in self.files: i.fd.seek(i.cur_done) + print "Uploading:", i.filename, str(i.size/1024), "kb" + sdone = 0 while i.fd.tell() < i.size: + sdone+=1 self.socket.sendall(i.fd.read(1024)) + if sdone % 100 == 0: + print "\r", + print str(sdone), "of", str(i.size/1024), "kb", + sys.stdout.flush() reply = self.readMsg(1) print reply self.sendMsg("ack") |