#define SEARCH_NO_STORAGE_SOLVABLE (1<<9)
#define SEARCH_EXTRA (1<<10)
#define SEARCH_ALL_REPOS (1<<11)
+#define SEARCH_SKIP_KIND (1<<12)
/* Internal */
#define __SEARCH_ONESOLVABLE (1 << 31)
default:
return 0;
}
+ /* Maybe skip the kind specifier. Do this only for SOLVABLE attributes,
+ for the others we can't know if a colon separates a kind or not. */
+ if ((flags & SEARCH_SKIP_KIND)
+ && di->key->storage == KEY_STORAGE_SOLVABLE)
+ {
+ const char *s = strchr(kv->str, ':');
+ if (s)
+ kv->str = s + 1;
+ }
switch ((flags & SEARCH_STRINGMASK))
{
case SEARCH_SUBSTRING: