BSolver/pkgman: Support for searching in provides

* BSolver/LibsolvSolver:
  * Add B_FIND_IN_NAME and make searching in the names explicit.
  * Add B_FIND_IN_PROVIDES to search the packages' provides list.
* pkgman: Also search in provides.
This commit is contained in:
Ingo Weinhold
2013-04-11 23:36:12 +02:00
parent eb13a353e3
commit 663e351cb4
3 changed files with 24 additions and 9 deletions
+4 -2
View File
@@ -25,8 +25,10 @@ public:
// FindPackages() flags
enum {
B_FIND_CASE_INSENSITIVE = 0x01,
B_FIND_IN_SUMMARY = 0x02,
B_FIND_IN_DESCRIPTION = 0x04
B_FIND_IN_NAME = 0x02,
B_FIND_IN_SUMMARY = 0x04,
B_FIND_IN_DESCRIPTION = 0x08,
B_FIND_IN_PROVIDES = 0x10
};
public: