From b0dd904d1a099da6873b971787244a2d69ac912d Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 22 Sep 2008 21:11:43 +0100 Subject: [PATCH] Don't filter out feeds with no machine type when looking for source code We treated a missing machine type in a as "any", but that doesn't match if we're looking for source code. --- zeroinstall/injector/solver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zeroinstall/injector/solver.py b/zeroinstall/injector/solver.py index e14b9e5..d02805c 100644 --- a/zeroinstall/injector/solver.py +++ b/zeroinstall/injector/solver.py @@ -210,7 +210,9 @@ class DefaultSolver(Solver): yield iface.uri for f in iface.feeds: - if f.os in arch.os_ranks and f.machine in arch.machine_ranks: + # Note: when searching for src, None is not in machine_ranks + if f.os in arch.os_ranks and \ + (f.machine is None or f.machine in arch.machine_ranks): yield f.uri else: debug("Skipping '%s'; unsupported architecture %s-%s", -- 2.11.4.GIT