dpkg: better and shorter code to compare versions
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 20 Nov 2008 23:41:56 +0000 (23:41 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 20 Nov 2008 23:41:56 +0000 (23:41 -0000)
commitb8baf407aacc09167c4e9fa0db55fe323b15854e
treee16b83936ea6dcf30e8b9968c5068d03d6bacf55
parent9a4c0d59a79efeba4e1c5feed7d07b7c6b6b04ce
dpkg: better and shorter code to compare versions
 (taken from "official" dpkg).
 By Eugene T. Bordenkircher (eugebo AT gmail.com)

function                                             old     new   delta
order                                                  -      48     +48
test_version                                         273     276      +3
version_compare_part                                 396     187    -209
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 51/-209)          Total: -158 bytes
archival/dpkg.c