diff options
author | Daniel Wagenknecht <dwagenknecht@emlix.com> | 2025-09-22 10:02:08 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-08 13:55:30 +0100 |
commit | 6936101aee384ac0ffa3366e9c75f8ee660e14d8 (patch) | |
tree | 2211019bb6a7776a6b040ba0e2b3d020c33a63ba /meta/lib/patchtest/repo.py | |
parent | d89f5f1fe3207bc204a10e67fe6ca63b9c014ae8 (diff) | |
download | poky-6936101aee384ac0ffa3366e9c75f8ee660e14d8.tar.gz |
os-release: do not add empty parentheses to VERSION
Setting DISTRO_CODENAME to an empty string previously led to a VERSION
field in /etc/os-release containing empty parantheses, e.g.
DISTRO_VERSION = "5.0.12"
DISTRO_CODENAME = ""
==> VERSION = "5.0.12 ()"
This is probably not what a user expects, especially since it is quite
common to set variables to empty strings to disable something in OE
based builds, but using `unset VARNAME` seems pretty uncommon.
Instead of adding the parentheses with the DISTRO_CODENAME if the
variable is in the datastore add them only if the variable is not empty.
(From OE-Core rev: 16c76a56fdea76de36b4660d1ea81055cd87aada)
Signed-off-by: Daniel Wagenknecht <dwagenknecht@emlix.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/patchtest/repo.py')
0 files changed, 0 insertions, 0 deletions