summaryrefslogtreecommitdiff
path: root/lib/thandy/ClientCLI.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thandy/ClientCLI.py')
-rw-r--r--lib/thandy/ClientCLI.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/thandy/ClientCLI.py b/lib/thandy/ClientCLI.py
index ba7fb2e..ad39a2d 100644
--- a/lib/thandy/ClientCLI.py
+++ b/lib/thandy/ClientCLI.py
@@ -33,11 +33,11 @@ def update(args):
for f in files:
# XXXX Use hash.
- dj = thandy.download.DownloadJob(f, repo.getFilename(f),
- mirrorlist)
+ dj = thandy.download.ThandyDownloadJob(f, repo.getFilename(f),
+ mirrorlist)
downloader.addDownloadJob(dj)
# XXXX replace file in repository if ok; reload; see what changed.
-
+
# Wait for in-progress jobs
# Check my repository
@@ -48,6 +48,7 @@ def update(args):
# Tell me what to install.
+
def usage():
print "Known commands:"
print " update [--repo=repository] [--no-download]"
@@ -58,7 +59,7 @@ def main():
usage()
cmd = sys.argv[1]
args = sys.argv[2:]
- if cmd in [ "update" ]:
+ if cmd in [ "update", "geturls" ]:
globals()[cmd](args)
else:
usage()