From a3e4d74c4158f1a14d46a093c655ea4f4dbb1f57 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Thu, 5 Aug 2010 19:40:28 +0100 Subject: [PATCH] Make --show (and --get-selections) work with --set-selections --- zeroinstall/injector/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zeroinstall/injector/cli.py b/zeroinstall/injector/cli.py index 204a1e1..7fa76b8 100644 --- a/zeroinstall/injector/cli.py +++ b/zeroinstall/injector/cli.py @@ -429,7 +429,9 @@ def main(command_args): from zeroinstall.injector import qdom, run sels = selections.Selections(qdom.parse(file(options.set_selections))) _download_missing_selections(options, sels) - if not options.download_only: + if options.get_selections: + _get_selections(sels, options) + elif not options.download_only: run.execute_selections(sels, args, options.dry_run, options.main, options.wrapper) elif getattr(options, 'import'): _import_feed(args) -- 2.11.4.GIT