mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
Fix get_firmware_info
This commit is contained in:
parent
a469ddeb54
commit
bf214f2e04
@ -1133,11 +1133,13 @@ proc ::rmupdate::get_firmware_info {} {
|
|||||||
}
|
}
|
||||||
foreach e [get_available_firmware_images] {
|
foreach e [get_available_firmware_images] {
|
||||||
set version [get_version_from_filename $e]
|
set version [get_version_from_filename $e]
|
||||||
|
if {$version != "unknown"} {
|
||||||
set images($version) $e
|
set images($version) $e
|
||||||
if {[lsearch $versions $version] == -1} {
|
if {[lsearch $versions $version] == -1} {
|
||||||
lappend versions $version
|
lappend versions $version
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
set versions [lsort -decreasing -command compare_versions $versions]
|
set versions [lsort -decreasing -command compare_versions $versions]
|
||||||
|
|
||||||
set json "\["
|
set json "\["
|
||||||
|
Loading…
Reference in New Issue
Block a user