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,9 +1133,11 @@ proc ::rmupdate::get_firmware_info {} {
|
||||
}
|
||||
foreach e [get_available_firmware_images] {
|
||||
set version [get_version_from_filename $e]
|
||||
set images($version) $e
|
||||
if {[lsearch $versions $version] == -1} {
|
||||
lappend versions $version
|
||||
if {$version != "unknown"} {
|
||||
set images($version) $e
|
||||
if {[lsearch $versions $version] == -1} {
|
||||
lappend versions $version
|
||||
}
|
||||
}
|
||||
}
|
||||
set versions [lsort -decreasing -command compare_versions $versions]
|
||||
|
Loading…
Reference in New Issue
Block a user