Mailinglist Archive: yast-commit (687 mails)

< Previous Next >
[yast-commit] r43568 - in /trunk/gtk: ChangeLog src/yzyppwrapper.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Sat, 12 Jan 2008 00:47:30 -0000
  • Message-id: <20080112004730.8E59A31B23@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Sat Jan 12 01:47:30 2008
New Revision: 43568

URL: http://svn.opensuse.org/viewcvs/yast?rev=43568&view=rev
Log:
* src/yzyppwrapper.cc: fixed search: ignore cases.

* src/YGPackageSelector.cc: renamed Accept to Apply.

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/yzyppwrapper.cc

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=43568&r1=43567&r2=43568&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sat Jan 12 01:47:30 2008
@@ -1,3 +1,9 @@
+2008-01-11 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>
+
+ * src/yzyppwrapper.cc: fixed search: ignore cases.
+
+ * src/YGPackageSelector.cc: renamed Accept to Apply.
+
2008-01-11 Boyd Timothy <btimothy@xxxxxxxxxx>

* src/Makefile.am: Added the icon files in icons/* to

Modified: trunk/gtk/src/yzyppwrapper.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/yzyppwrapper.cc?rev=43568&r1=43567&r2=43568&view=diff
==============================================================================
--- trunk/gtk/src/yzyppwrapper.cc (original)
+++ trunk/gtk/src/yzyppwrapper.cc Sat Jan 12 01:47:30 2008
@@ -788,13 +788,15 @@
if (match && names.defined) {
const std::list <std::string> &values = names.values;
std::list <std::string>::const_iterator it;
- for (it = values.begin(); it != values.end(); it++)
- if (package->name().find (*it) ==
std::string::npos &&
- package->summary().find (*it) ==
std::string::npos &&
- package->provides().find (*it) ==
std::string::npos) {
+ for (it = values.begin(); it != values.end(); it++) {
+ const char *key = it->c_str();
+ if (!strcasestr (package->name().c_str(), key)
&&
+ !strcasestr (package->summary().c_str(),
key) &&
+ !strcasestr (package->provides().c_str(),
key)) {
match = false;
break;
}
+ }
}
if (match && categories.defined) {
Ypp::Node *pkg_category = package->category();

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages