[recipes] recipe: Allow searching just by name
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] recipe: Allow searching just by name
- Date: Fri, 6 Jan 2017 11:35:08 +0000 (UTC)
commit 90d2d85b9859415f875fd2f43860b8462e67b56e
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 28 22:49:48 2016 -0500
recipe: Allow searching just by name
This will be used in the next few commits.
src/gr-recipe.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-recipe.c b/src/gr-recipe.c
index 7269c84..91a73fe 100644
--- a/src/gr-recipe.c
+++ b/src/gr-recipe.c
@@ -707,6 +707,12 @@ gr_recipe_matches (GrRecipe *recipe,
continue;
}
+ else if (g_str_has_prefix (terms[i], "na:")) {
+ if (recipe->cf_name && strstr (recipe->cf_name, terms[i] + 3) == NULL)
+ return FALSE;
+ continue;
+
+ }
if (recipe->cf_name && strstr (recipe->cf_name, terms[i]) != NULL)
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]