aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--x11/menu-cache/Makefile2
-rw-r--r--x11/menu-cache/files/patch-menu-cached.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/x11/menu-cache/Makefile b/x11/menu-cache/Makefile
index 04054bdb4b42..a50363b83472 100644
--- a/x11/menu-cache/Makefile
+++ b/x11/menu-cache/Makefile
@@ -7,7 +7,7 @@
PORTNAME= menu-cache
PORTVERSION= 0.3.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11
MASTER_SITES= SF/lxde/menu-cache/menu-cache%20${PORTVERSION}/
diff --git a/x11/menu-cache/files/patch-menu-cached.c b/x11/menu-cache/files/patch-menu-cached.c
index c70d4d966117..0c191f996116 100644
--- a/x11/menu-cache/files/patch-menu-cached.c
+++ b/x11/menu-cache/files/patch-menu-cached.c
@@ -20,7 +20,7 @@
+ char* dir_path = cache->files[idx]+1;
+ int len = strlen(dir_path);
+ char* base_name = changed_file + len + 1;
-+ gboolean in_cache = is_desktop_file_in_cache(cache, idx, base_name);
++ gboolean in_cache = is_desktop_file_in_cache(cache, idx, g_file_get_path(gf));
+ if( ! in_cache ) { /* Means this file was already deleted, no need to refresh cache */
+ DEBUG("files are changed, but no re-generation is needed.");
+ return;