summaryrefslogtreecommitdiff
path: root/tupkg
diff options
context:
space:
mode:
authorsimo <simo>2006-02-19 00:13:39 +0000
committersimo <simo>2006-02-19 00:13:39 +0000
commit11a246232ce9fae3f5db9935349b3a7635438a55 (patch)
treea6da8a3e8632fcafb180208233323ecea7d86e65 /tupkg
parent9cec008f707637d419bfc493843bdcf7f0a2aaae (diff)
progress patch from iphitus
Diffstat (limited to 'tupkg')
-rwxr-xr-xtupkg/client/tupkg7
1 files changed, 7 insertions, 0 deletions
diff --git a/tupkg/client/tupkg b/tupkg/client/tupkg
index 021e647..87ffac0 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")