agallou / mageia-app-db

GNU Affero General Public License v3.0
6 stars 3 forks source link

fix evrCompare (doesn't handle "." correctly ?) #207

Open agallou opened 10 years ago

agallou commented 10 years ago

Author Name: Samuel Verschelde (@stormi) Original Redmine Issue: 117, http://mageia-app-db.tuxette.fr/issues/117 Original Date: 2011/03/10 Original Assignee: Samuel Verschelde


echo RpmPeer::evrCompare("10-13mdv2010.2","10-13.mga1" );

=> returns 1, should return -1

agallou commented 10 years ago

Original Redmine Comment Author Name: Samuel Verschelde (@stormi) Original Date: 2011/03/16 16:37:27 +0100


See rpmvercmp.c in rpm5 source code ? (suggestion from Jeff Johnson)