diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-30 13:14:02 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-30 13:14:02 +0000 |
commit | 86d42a4226c0f5bba9c1791d793aa2bb04ffca03 (patch) | |
tree | 18c3980caf2827574c07aca0d5831cfda628d317 | |
parent | a67f3ec6d6d5b81e94b019698aefac6134fda6c1 (diff) | |
download | rpmdrake-86d42a4226c0f5bba9c1791d793aa2bb04ffca03.tar rpmdrake-86d42a4226c0f5bba9c1791d793aa2bb04ffca03.tar.gz rpmdrake-86d42a4226c0f5bba9c1791d793aa2bb04ffca03.tar.bz2 rpmdrake-86d42a4226c0f5bba9c1791d793aa2bb04ffca03.tar.xz rpmdrake-86d42a4226c0f5bba9c1791d793aa2bb04ffca03.zip |
(do_search) fix matching packages when performing searches whithin hdlists (we
now internally consider <name>-<ver>-<rel>.<arch> instead of just
<name>-<ver>-<rel>)
-rwxr-xr-x | rpmdrake | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -587,8 +587,8 @@ sub do_search($$$$$$$) { local $_; while (<$sf>) { $searchstop and last; - if (/^NAME<([^>]+)> VERSION<([^>]+)> RELEASE<([^>]+)>/) { - $pkg = "$1-$2-$3"; + if (/^NAME<([^>]+)> VERSION<([^>]+)> RELEASE<([^>]+)> ARCH<([^>]+)>/) { + $pkg = "$1-$2-$3.$4"; $progresscount++; $progresscount <= $total_size and $searchprogress->set_fraction($progresscount/$total_size); $searchw->flush; next; |