gluon/docs/dev
Matthias Schiffer 13b743d51e features: fix handling of logical expressions
The rewrite of the feature handling introduced multiple major bugs. One
of them was caused by the way Lua's logical operators work:

An expression of the form

    _'autoupdater' and _'web-advanced'

would return 'web-advanced' rather than the boolean true when _ returned
both strings unchanged (because the features are enabled).

As entries with more than a single feature name in their expressions did
not set no_default, Gluon would then attempt to add gluon-web-advanced to
the package selection, as web-advanced is a "pure" feature.

To fix this, and get rid of the annoying nodefault, separate handling of
"pure" feature and handling of logical expressions into two separate
functions, called feature() and when(). To simplify the feature
definitions, the package list is now passed directly to these functions
rather than in a table with a single field 'packages'.

Fixes: ee5ec5afe5 ("build: rewrite features.sh in Lua")
2020-08-28 22:27:38 +02:00
..
web docs: fix typos and small text improvements 2019-04-02 02:32:50 +02:00
basics.rst add .editorconfig (#1951) 2020-03-08 19:18:17 +01:00
build.rst docs: fix small typos and use common used notation (#2088) 2020-08-13 13:25:45 +02:00
debugging.rst docs: fix small typos and use common used notation (#2088) 2020-08-13 13:25:45 +02:00
hardware.rst docs: dev: add link to device checklist 2020-05-02 16:15:31 +02:00
mac_addresses.rst docs: dev: add OWE MAC-assignment 2020-04-11 15:13:57 +02:00
packages.rst features: fix handling of logical expressions 2020-08-28 22:27:38 +02:00
site_library.rst docs: fix typos and small text improvements 2019-04-02 02:32:50 +02:00
upgrade.rst docs: update upgrade.rst 2019-06-24 13:37:06 +02:00
wan.rst docs: fix small typos and use common used notation (#2088) 2020-08-13 13:25:45 +02:00