From bb02b808d79e4821a59c59e72aa8bb40e68704c5 Mon Sep 17 00:00:00 2001 From: "apps.0install.net" Date: Thu, 2 Dec 2021 21:20:29 +0100 Subject: [PATCH] Exclude runtimes from list of featured apps --- 0repo-config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0repo-config.py b/0repo-config.py index ea529267d..46020d4b6 100644 --- a/0repo-config.py +++ b/0repo-config.py @@ -168,7 +168,7 @@ def has_command(command_name): def is_executable(): return has_main('group') or has_main('implementation') or has_main('package-implementation') or has_command('run') def excluded_from_toplevel(): - return not is_executable() or feed_root.getAttribute('uri').startswith('https://apps.0install.net/lib/') or feed_root.getAttribute('uri').startswith('https://apps.0install.net/dotnet/clr') or feed_root.getAttribute('uri').startswith('https://apps.0install.net/0install/') + return not is_executable() or feed_root.getAttribute('uri').startswith('https://apps.0install.net/lib/') or feed_root.getAttribute('uri').endswith('runtime.xml') or feed_root.getAttribute('uri').startswith('https://apps.0install.net/dotnet/clr') or feed_root.getAttribute('uri').startswith('https://apps.0install.net/0install/') return has_tag('replaced-by') or has_tag('feed-for') or (dir_rel_path == '' and excluded_from_toplevel())