Module: Mesa
Branch: main
Commit: 50da22812d971181185f59059e980ea2d84c83d2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=50da22812d971181185f59059e980ea2d84c83d2

Author: Eric Engestrom <e...@igalia.com>
Date:   Tue Dec 12 12:23:31 2023 +0000

ci/b2c: always define cmdline_extras

Just make it an empty string when undefined

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26653>

---

 .gitlab-ci/b2c/generate_b2c.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.gitlab-ci/b2c/generate_b2c.py b/.gitlab-ci/b2c/generate_b2c.py
index 149ac75a91f..66a082fb8b2 100755
--- a/.gitlab-ci/b2c/generate_b2c.py
+++ b/.gitlab-ci/b2c/generate_b2c.py
@@ -95,8 +95,7 @@ values['local_container'] = values['local_container'].replace(
     '{{ fdo_proxy_registry }}'
 )
 
-if 'B2C_KERNEL_CMDLINE_EXTRAS' in environ:
-    values['cmdline_extras'] = environ['B2C_KERNEL_CMDLINE_EXTRAS']
+values['cmdline_extras'] = environ.get('B2C_KERNEL_CMDLINE_EXTRAS', '')
 
 f = open(path.splitext(path.basename(args.template))[0], "w")
 f.write(template.render(values))

Reply via email to