diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-01-21 22:10:57 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-01-21 22:10:57 +0000 |
commit | 834258a47fa57c59f91f093d0af6e3eb0d52c9af (patch) | |
tree | 858e7ad42408d3bbb628d7d9b7e7b31666bdf254 | |
parent | a498becaf26d200f32809eb60125858bc6e6dc72 (diff) | |
download | perl-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-- | NEWS | 1 | ||||
-rw-r--r-- | URPM.xs | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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() @@ -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) { |