diff options
author | Ulrich Müller <ulm@gentoo.org> | 2020-02-20 14:04:34 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2020-02-20 14:27:33 +0100 |
commit | 42fe7eadad8c80836ace0de527e988383f63b7da (patch) | |
tree | ce435e531f044ebd761676bf9e47ebc0bb7e6a11 /cnf | |
parent | async_fetch_map: handle _parse_uri_map exception (bug 710130) (diff) | |
download | portage-42fe7eadad8c80836ace0de527e988383f63b7da.tar.gz portage-42fe7eadad8c80836ace0de527e988383f63b7da.tar.bz2 portage-42fe7eadad8c80836ace0de527e988383f63b7da.zip |
einstalldocs: Fix test for DOCS being unset.
The current test does not exactly test for unset DOCS, because it also
evaluates as true if the variable has attributes. Such attributes can
be defined even for an unset variable.
Therefore test the output of declare -p for presence of an = sign
instead, which indicates that a value has been assigned to the
variable (bug 710076 comment #2).
PMS reference: Algorithm 12.4, line 7:
https://projects.gentoo.org/pms/7/pms.html#x1-135011r183
See also bash upstream discussion:
https://lists.gnu.org/archive/html/bug-bash/2020-02/msg00045.html
Closes: https://bugs.gentoo.org/710076
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'cnf')
0 files changed, 0 insertions, 0 deletions