Ticket #17041: patch-portlivecheck.tcl.diff
File patch-portlivecheck.tcl.diff, 1.8 KB (added by dbevans (David B. Evans), 16 years ago) |
---|
-
portlivecheck.tcl
188 188 if {${livecheck.check} == "regexm"} { 189 189 set data [read $chan] 190 190 if {[regexp $the_re $data matched updated_version]} { 191 if { $updated_version != ${livecheck.version}} {191 if {[rpm-vercomp $updated_version ${livecheck.version}] > 0} { 192 192 set updated 1 193 ui_debug "Extracted version \"$updated_version\" is newer than livecheck version \"${livecheck.version}\"" 193 194 } else { 194 195 set updated 0 196 ui_debug "Livecheck version \"${livecheck.version}\" is newer than or equal to extracted version \"$updated_version\"" 195 197 } 196 198 ui_debug "The regex matched \"$matched\", extracted \"$updated_version\"" 197 199 } … … 210 212 if {$foundmatch == 1} { 211 213 if {$updated_version == 0} { 212 214 set updated -1 213 } elseif { $updated_version != ${livecheck.version}} {215 } elseif {[rpm-vercomp $updated_version ${livecheck.version}] > 0} { 214 216 set updated 1 217 ui_debug "Extracted version \"$updated_version\" is newer than livecheck version \"${livecheck.version}\"" 215 218 } else { 216 219 set updated 0 220 ui_debug "Livecheck version \"${livecheck.version}\" is newer than or equal to extracted version \"$updated_version\"" 217 221 } 218 222 } 219 223 }