File yelp-lang-bundle.patch of Package yelp

Index: yelp-3.1.3/libyelp/yelp-uri.c
===================================================================
--- yelp-3.1.3.orig/libyelp/yelp-uri.c
+++ yelp-3.1.3/libyelp/yelp-uri.c
@@ -623,8 +623,21 @@ resolve_data_dirs (YelpUri      *ret,
                                                langfirst ? docid : langs[lang_i],
                                                NULL);
             if (!g_file_test (helpdir, G_FILE_TEST_IS_DIR)) {
+                gchar *bundle_subdir = g_strdup_printf ("%s-bundle", subdir);
+
                 g_free (helpdir);
-                continue;
+
+                helpdir = g_build_filename (datadirs[datadir_i],
+                                            bundle_subdir,
+                                            langfirst ? langs[lang_i] : docid,
+                                            langfirst ? docid : langs[lang_i],
+                                            NULL);
+                g_free (bundle_subdir);
+
+                if (!g_file_test (helpdir, G_FILE_TEST_IS_DIR)) {
+                    g_free (helpdir);
+                    continue;
+                }
             }
 
             if (searchi + 1 >= searchmax) {
openSUSE Build Service is sponsored by