Skip to content

Commit

Permalink
os_detect: add support for Buildroot
Browse files Browse the repository at this point in the history
Add support for systems generated with Buildroot:
https://buildroot.org/

Buildroot systems follows the freedesktop.org /etc/os-release spec. See:
https://git.busybox.net/buildroot/commit/?id=451a887894faddef019e9a0628c21b5f2e9eee56

Signed-off-by: Julien Olivain <juju@cotds.org>
  • Loading branch information
jolivain committed Jun 28, 2020
1 parent d6d1be6 commit 5ab4408
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rospkg/os_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ def get_codename(self):

OS_ALPINE = 'alpine'
OS_ARCH = 'arch'
OS_BUILDROOT = 'buildroot'
OS_MANJARO = 'manjaro'
OS_CENTOS = 'centos'
OS_CYGWIN = 'cygwin'
Expand Down Expand Up @@ -743,6 +744,7 @@ def get_codename(self):

OsDetect.register_default(OS_ALPINE, FdoDetect("alpine"))
OsDetect.register_default(OS_ARCH, Arch())
OsDetect.register_default(OS_BUILDROOT, FdoDetect("buildroot"))
OsDetect.register_default(OS_MANJARO, Manjaro())
OsDetect.register_default(OS_CENTOS, Centos())
OsDetect.register_default(OS_CYGWIN, Cygwin())
Expand Down

0 comments on commit 5ab4408

Please sign in to comment.