Skip to content

Commit 2998734

Browse files
authored
Merge pull request #330 from chewitt/leiot
fix get_os_release after distro unbranding changes
2 parents 1eaa10a + c28b3e4 commit 2998734

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

resources/lib/oe.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -765,14 +765,14 @@ def get_os_release():
765765
version = os_release_info['VERSION']
766766
if 'VERSION_ID' in os_release_info:
767767
version_id = os_release_info['VERSION_ID']
768-
if 'LIBREELEC_ARCH' in os_release_info:
769-
architecture = os_release_info['LIBREELEC_ARCH']
770-
if 'LIBREELEC_BUILD' in os_release_info:
771-
build = os_release_info['LIBREELEC_BUILD']
772-
if 'LIBREELEC_PROJECT' in os_release_info:
773-
project = os_release_info['LIBREELEC_PROJECT']
774-
if 'LIBREELEC_DEVICE' in os_release_info:
775-
device = os_release_info['LIBREELEC_DEVICE']
768+
if 'DISTRO_ARCH' in os_release_info:
769+
architecture = os_release_info['DISTRO_ARCH']
770+
if 'DISTRO_BUILD' in os_release_info:
771+
build = os_release_info['DISTRO_BUILD']
772+
if 'DISTRO_PROJECT' in os_release_info:
773+
project = os_release_info['DISTRO_PROJECT']
774+
if 'DISTRO_DEVICE' in os_release_info:
775+
device = os_release_info['DISTRO_DEVICE']
776776
if 'BUILDER_NAME' in os_release_info:
777777
builder_name = os_release_info['BUILDER_NAME']
778778
if 'BUILDER_VERSION' in os_release_info:

0 commit comments

Comments
 (0)