1
0
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:
Jan Schneider 2018-03-25 20:00:03 +02:00
parent a469ddeb54
commit bf214f2e04

View File

@ -1133,9 +1133,11 @@ 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]
set images($version) $e if {$version != "unknown"} {
if {[lsearch $versions $version] == -1} { set images($version) $e
lappend versions $version if {[lsearch $versions $version] == -1} {
lappend versions $version
}
} }
} }
set versions [lsort -decreasing -command compare_versions $versions] set versions [lsort -decreasing -command compare_versions $versions]