Update _alpm_versioncmp
commit84283672853350a84d2a71b72dc06e180cad1587
authorDan McGee <dan@archlinux.org>
Wed, 14 May 2008 05:30:04 +0000 (14 00:30 -0500)
committerDan McGee <dan@archlinux.org>
Wed, 14 May 2008 05:30:04 +0000 (14 00:30 -0500)
tree451da850fc48ab934742f7ec1cee46781e39f196
parentdd98aa8564a21ed43782704bf9feb5b2b114825f
Update _alpm_versioncmp

This code hasn't been looked at in some time. I grabbed a more recent
version of the RPM source (4.4.2.3) and attempted to sync up any changes
they have made, as well as make the libalpm additional code much cleaner and
limited to only a few added lines of code.

The size of this patch might make you think we added code, but bloat-o-meter
actually tells us otherwise:
<function>                                 <old>   <new>  <diff>
_alpm_versioncmp                            1485    1021    -464

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/package.c