summaryrefslogtreecommitdiffstats
path: root/tupkg/client
diff options
context:
space:
mode:
authorjchu <jchu>2004-12-26 21:12:46 +0100
committerjchu <jchu>2004-12-26 21:12:46 +0100
commit91c3f94ff9df319b548cd332566198b72f8124cd (patch)
tree17fc5b3a4a8ba5e9f24e8e1084ea7cf45e16935f /tupkg/client
parent3606143e6fcbb4dc27632c41d6bfc6c10d535b08 (diff)
downloadaur-91c3f94ff9df319b548cd332566198b72f8124cd.tar.gz
aur-91c3f94ff9df319b548cd332566198b72f8124cd.tar.xz
commited neotuli's patch for source links
Diffstat (limited to 'tupkg/client')
-rwxr-xr-xtupkg/client/tupkg18
1 files changed, 11 insertions, 7 deletions
diff --git a/tupkg/client/tupkg b/tupkg/client/tupkg
index a96923e0..380dc53f 100755
--- a/tupkg/client/tupkg
+++ b/tupkg/client/tupkg
@@ -159,17 +159,21 @@ def main(argv=None):
return 1
cs = ClientSocket(files, confdict['host'], confdict['port'], confdict['user'], confdict['password'])
- cs.connect()
+ try:
+ cs.connect()
- if not cs.auth():
- print "Error authenticating you, you bastard"
- return 1
+ if not cs.auth():
+ print "Error authenticating you, you bastard"
+ return 1
- cs.sendFileMeta()
+ cs.sendFileMeta()
- cs.sendFiles()
+ cs.sendFiles()
- cs.close()
+ cs.close()
+ except KeyboardInterrupt:
+ print "Cancelling"
+ cs.close()
return 0