Skip to content
Snippets Groups Projects
Commit da7e3fdc authored by Simon McVittie's avatar Simon McVittie
Browse files

Add support for ID_LIKE os-release(5) field


This one is a bit different because the raw field is a space-separated
list. For convenience, srt_system_info_dup_os_id_like() can be asked
to include the OS itself, for use in logic like this pseudocode:

    for id in info.dup_os_id_like(True):
        if id in special_cases:
            special_cases[id].run()
            break
    else:
        do_generic_behaviour()

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent dbd80ed2
No related branches found
No related tags found
1 merge request!62Inspect os-release(5) to see whether we are in a SteamRT container/chroot
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment