gluon/docs
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
..
_static/css docs: add a number of CSS fixes (#2078) 2020-08-08 17:20:05 +02:00
dev features: fix handling of logical expressions 2020-08-28 22:27:38 +02:00
features Merge pull request #2065 from freifunk-gluon/early-reconfigure 2020-08-22 19:50:55 +02:00
multidomain-site-example docs: examples: remove haveged from GLUON_SITE_PACKAGES 2020-04-30 01:51:42 +02:00
package docs: fix small typos and use common used notation (#2088) 2020-08-13 13:25:45 +02:00
releases docs: fix small typos and use common used notation (#2088) 2020-08-13 13:25:45 +02:00
site-example docs: update autoupdater documentation 2020-08-15 16:37:45 +02:00
user docs: update autoupdater documentation 2020-08-15 16:37:45 +02:00
.gitignore docs: initial sphinx project with very little content 2014-02-20 17:22:06 +01:00
conf.py docs: add a number of CSS fixes (#2078) 2020-08-08 17:20:05 +02:00
index.rst docs: add v2020.2 release notes 2020-07-19 17:01:11 +02:00
Makefile docs: treat sphinx warnings as errors 2019-06-20 13:38:09 +02:00
requirements.txt docs: specify build dependencies in requirements.txt 2020-06-03 02:17:39 +02:00