From 179bf25b1961183b8517da39d019b488d43f06a6 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 13 May 2005 20:08:38 +0000 Subject: [PATCH] Don't kill downloads with --refresh. git-svn-id: file:///home/talex/Backups/sf.net/Subversion/zero-install/injector/head/injector-gui@197 9f8c893c-44ee-0310-b757-c8ca8341c71e --- 0launch-gui | 2 +- gui.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/0launch-gui b/0launch-gui index d6ffd15..2240702 100755 --- a/0launch-gui +++ b/0launch-gui @@ -30,5 +30,5 @@ gtk.rc_parse_string('style "scrolled" { ' policy = GUIPolicy(interface_uri, prog_args, download_only = bool(options.download_only)) if options.refresh: - policy.refresh_all() + policy.refresh_all(force = False) policy.main() diff --git a/gui.py b/gui.py index 921805a..fd291d2 100644 --- a/gui.py +++ b/gui.py @@ -80,9 +80,10 @@ class GUIPolicy(Policy): """Return the best download source for this implementation.""" return impl.download_sources[0] - def refresh_all(self): - for x in policy.walk_interfaces(): - policy.begin_iface_download(x, True) + # XXX: Remove this. Moved to Policy. + def refresh_all(self, force = True): + for x in self.walk_interfaces(): + self.begin_iface_download(x, force) def pretty_size(size): if size is None: -- 2.11.4.GIT