mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
Fix current version display
This commit is contained in:
parent
6e3d446d5b
commit
0cb0d14d96
@ -1207,12 +1207,15 @@ proc ::rmupdate::get_firmware_info {} {
|
||||
}
|
||||
}
|
||||
}
|
||||
set versions [lsort -decreasing -command compare_versions $versions]
|
||||
set latest [lindex $versions 0]
|
||||
|
||||
if {$experimental_version != ""} {
|
||||
if {[lsearch $versions $experimental_version] == -1} {
|
||||
set tmp [split $experimental_version "-"]
|
||||
# experimental version != latest version
|
||||
lappend versions $experimental_version
|
||||
if {[lindex $tmp 0] == $current} {
|
||||
if {[lindex $tmp 0] == $current && $current != $latest} {
|
||||
# assuming that experimental version is installed
|
||||
set current $experimental_version
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user