summaryrefslogtreecommitdiffstats
path: root/tupkg
diff options
context:
space:
mode:
authorsimo <simo>2006-02-19 01:13:39 +0100
committersimo <simo>2006-02-19 01:13:39 +0100
commit11a246232ce9fae3f5db9935349b3a7635438a55 (patch)
treea6da8a3e8632fcafb180208233323ecea7d86e65 /tupkg
parent9cec008f707637d419bfc493843bdcf7f0a2aaae (diff)
downloadaur-11a246232ce9fae3f5db9935349b3a7635438a55.tar.gz
aur-11a246232ce9fae3f5db9935349b3a7635438a55.tar.xz
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 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")