From 7d740280329fe1802937f229042e5a5faceddc09 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 13 Mar 2010 12:42:24 +0000 Subject: [PATCH] Record details about why an implementation is unavailable --- zeroinstall/injector/solver.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/zeroinstall/injector/solver.py b/zeroinstall/injector/solver.py index 08caee1..e4d4b34 100644 --- a/zeroinstall/injector/solver.py +++ b/zeroinstall/injector/solver.py @@ -203,6 +203,10 @@ class PBSolver(Solver): warn(_("Failed to load feed %(feed)s for %(interface)s: %(exception)s"), {'feed': f, 'interface': iface, 'exception': str(ex)}) impls.sort() + + if self.record_details: + self.details[iface] = [(impl, get_unusable_reason(impl, arch)) for impl in impls] + rank = 1 exprs = [] for impl in impls: @@ -289,8 +293,10 @@ class PBSolver(Solver): elif line: print line finally: - #print tmp_name - os.unlink(tmp_name) + if comment_problem: + print tmp_name + else: + os.unlink(tmp_name) DefaultSolver = PBSolver -- 2.11.4.GIT