From 834258a47fa57c59f91f093d0af6e3eb0d52c9af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Fri, 21 Jan 2011 22:10:57 +0000 Subject: look for EVR of package at the first element @provides@ rather than the last --- NEWS | 1 + URPM.xs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 5a052a1..5303be6 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ Version 4.11 - 21 Jan 2011, by Per Øyvind Karlsen +- look for EVR of package at the first element @provides@ rather than the last - replace incorrect usage of URPM::rpmvercmp on NVRA with rpmEVRcompare in URPM::Resolve::provided_version_that_overlaps() & URPM::Resolve::_find_required_package__sort() diff --git a/URPM.xs b/URPM.xs index 1e1ea13..022e620 100644 --- a/URPM.xs +++ b/URPM.xs @@ -302,8 +302,8 @@ static const char * get_evr(URPM__Package pkg) { const char *evr = NULL; if(pkg->provides) { - evr = strrchr(pkg->provides, ' ')+1; - char *tmp = strrchr(evr, ']'); + evr = strchr(pkg->provides, ' ')+1; + char *tmp = strchr(evr, ']'); if(tmp) backup_char(tmp); } else if(pkg->h) { -- cgit v1.2.1