Skip to content
Snippets Groups Projects
Simon McVittie's avatar
Simon McVittie authored
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>
da7e3fdc
History
Name Last commit Last update
..