aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-01-21 22:10:57 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-01-21 22:10:57 +0000
commit834258a47fa57c59f91f093d0af6e3eb0d52c9af (patch)
tree858e7ad42408d3bbb628d7d9b7e7b31666bdf254
parenta498becaf26d200f32809eb60125858bc6e6dc72 (diff)
downloadperl-URPM-834258a47fa57c59f91f093d0af6e3eb0d52c9af.tar
perl-URPM-834258a47fa57c59f91f093d0af6e3eb0d52c9af.tar.gz
perl-URPM-834258a47fa57c59f91f093d0af6e3eb0d52c9af.tar.bz2
perl-URPM-834258a47fa57c59f91f093d0af6e3eb0d52c9af.tar.xz
perl-URPM-834258a47fa57c59f91f093d0af6e3eb0d52c9af.zip
look for EVR of package at the first element @provides@ rather than the last
-rw-r--r--NEWS1
-rw-r--r--URPM.xs4
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) {