Add documentation about Like distros

This commit is contained in:
Arsen Musayelyan 2022-10-01 21:00:57 -07:00
parent a02a009b63
commit 75a60070ba
1 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,15 @@ Names are checked in the following order:
Distro detection is performed by reading the `/usr/lib/os-release` and `/etc/os-release` files.
### Like distros
Inside the `os-release` file, there is a list of "like" distros. LURE takes this into account. For example, if a script contains `deps_debian` but not `deps_ubuntu`, Ubuntu builds will use `deps_debian` because Ubuntu is based on debian.
Most specificity is preferred, so if both `deps_debian` and `deps_ubuntu` is provided, Ubuntu and all Ubuntu-based distros will use `deps_ubuntu` while Debian and all Debian-based distros
that are not Ubuntu-based will use `deps_debian`.
Like distros are disabled when using the `LURE_DISTRO` environment variable.
## Variables
Any variables marked with `(*)` are required