31 lines
827 B
Diff
31 lines
827 B
Diff
--- yelp-2.16.0/src/yelp-search-pager.c.apropos 2006-11-03 14:06:37.000000000 -0500
|
|
+++ yelp-2.16.0/src/yelp-search-pager.c 2006-11-03 14:32:34.000000000 -0500
|
|
@@ -2039,8 +2039,16 @@
|
|
gchar *title = NULL;
|
|
/*gint i;*/
|
|
|
|
- if (line == NULL || line[0] == NULL || line[1] == NULL)
|
|
- continue;
|
|
+ if (line == NULL || line[0] == NULL || line[1] == NULL)
|
|
+ goto done;
|
|
+
|
|
+ /* RH man inserts rpm references into the whatis database */
|
|
+ if (g_str_has_prefix (line[1], "rpm)"))
|
|
+ goto done;
|
|
+
|
|
+ tmp = strchr (line[0], ' ');
|
|
+ if (tmp)
|
|
+ *tmp = '\0';
|
|
|
|
title = g_strdup (g_strstrip (line[0]));
|
|
after = strstr (line[1], ")");
|
|
@@ -2068,6 +2076,8 @@
|
|
xmlNewChild (child, NULL, BAD_CAST "score",
|
|
BAD_CAST "0.1");
|
|
g_free (tmp);
|
|
+
|
|
+done:
|
|
g_strfreev (line);
|
|
}
|
|
|