Skip to content
Permalink
Browse files

system - Debian / Raspbian logic changes

 * move __os_debian_ver to top of function and use for comparisons in get_os_version
 * change error for pre Jessie Raspbian/Debian from Jessie to Stretch
 * Disable binaries completely for Jessie now - users updating are likely to get errors, but source may still work. Note the two compareVersions are intentional for easy editing later when we start supporting the newer release
  • Loading branch information...
joolswills committed Apr 13, 2019
1 parent de71dab commit e3142fbbfcbf2de3c2ac8e534b52f365e8f40283
Showing with 7 additions and 7 deletions.
  1. +7 −7 scriptmodules/system.sh
@@ -76,13 +76,16 @@ function get_os_version() {
local error=""
case "$__os_id" in
Raspbian|Debian)
# get major version (8 instead of 8.0 etc)
__os_debian_ver="${__os_release%%.*}"

# Debian unstable is not officially supported though
if [[ "$__os_release" == "unstable" ]]; then
__os_release=10
fi

if compareVersions "$__os_release" lt 8; then
error="You need Raspbian/Debian Jessie or newer"
if compareVersions "$__os_debian_ver" lt 8; then
error="You need Raspbian/Debian Stretch or newer"
fi

# set a platform flag for osmc
@@ -95,13 +98,10 @@ function get_os_version() {
__platform_flags+=" xbian"
fi

# we provide binaries for RPI on Raspbian < 10 only
if isPlatform "rpi" && compareVersions "$__os_release" lt 10; then
# we provide binaries for RPI on Raspbian 9 only
if isPlatform "rpi" && compareVersions "$__os_debian_ver" gt 8 && compareVersions "$__os_debian_ver" lt 10; then
__has_binaries=1
fi

# get major version (8 instead of 8.0 etc)
__os_debian_ver="${__os_release%%.*}"
;;
Devuan)
if isPlatform "rpi"; then

1 comment on commit e3142fb

@joolswills

This comment has been minimized.

Copy link
Member Author

commented on e3142fb Apr 13, 2019

Wording of last paragraph in commit msg would be better as

  • Disable binaries completely for Jessie now - users updating are likely to get errors installing older binaries with up to date RetroPie-Setup, but source may still work. Note the two compareVersions are intentional for easy editing later when we start supporting the next Raspbian release.
Please sign in to comment.
You can’t perform that action at this time.