diff options
author | Daniel Wagenknecht <dwagenknecht@emlix.com> | 2025-09-22 10:02:08 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-07 13:53:07 +0100 |
commit | 666d045aaf12128eb5aae63b391fdd67f1de76ab (patch) | |
tree | 4b3de160eced263fc520db3a958a17caac1603e3 /scripts/lib/devtool/sdk.py | |
parent | 9f5c240654df810fde3ae103d492c603d3ef1573 (diff) | |
download | poky-666d045aaf12128eb5aae63b391fdd67f1de76ab.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: bbaa4b9ae5856f90c5c809c72eb2527aa956c86c)
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 'scripts/lib/devtool/sdk.py')
0 files changed, 0 insertions, 0 deletions