You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DJIConfig.cmake fails if /etc/lsb-release doesn't exist and that is basically the case for any non-Debian Linux, e.g. Fedora, RHEL etc. Later on the /etc/lsb-release output is compared to Ubuntu versions, in other words, it makes no sence for any other, even Debian, Linux distribution.
The weirdest thing is that DISTRO_VERSION -- variable that is set base on lsb-release -- is not used anywhere at all!
The solution is to check the return code of cat /etc/lsb-release command and immediately set DISTRO_VERSION to UNKNOWN if non-zero result has been returned. Or just delete/comment the code, since it is not in use.
The text was updated successfully, but these errors were encountered:
Onboard-SDK/contrib/DJIConfig.cmake
Line 18 in af89ee0
DJIConfig.cmake
fails if/etc/lsb-release
doesn't exist and that is basically the case for any non-Debian Linux, e.g. Fedora, RHEL etc. Later on the/etc/lsb-release
output is compared to Ubuntu versions, in other words, it makes no sence for any other, even Debian, Linux distribution.The weirdest thing is that
DISTRO_VERSION
-- variable that is set base on lsb-release -- is not used anywhere at all!The solution is to check the return code of
cat /etc/lsb-release
command and immediately setDISTRO_VERSION
toUNKNOWN
if non-zero result has been returned. Or just delete/comment the code, since it is not in use.The text was updated successfully, but these errors were encountered: