Skip to content

Commit

Permalink
Exclude runtimes from list of featured apps
Browse files Browse the repository at this point in the history
  • Loading branch information
apps.0install.net committed Dec 2, 2021
1 parent 6045118 commit bb02b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 0repo-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit bb02b80

Please sign in to comment.