Restore the behavior of unlinking invalid icon cache files to prevent

leftovers.

reported by:	pointyhat via pav
This commit is contained in:
Joe Marcus Clarke 2008-02-16 16:36:43 +00:00
parent a01bd0ab5f
commit ab8be875bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=207332
4 changed files with 24 additions and 2 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= gtk
PORTVERSION= 2.12.8
PORTREVISION?= 0
PORTREVISION?= 1
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/,} \
ftp://ftp.gtk.org/pub/gtk/%SUBDIR%/ \

View File

@ -0,0 +1,11 @@
--- gtk/updateiconcache.c.orig 2008-02-16 11:33:25.000000000 -0500
+++ gtk/updateiconcache.c 2008-02-16 11:33:33.000000000 -0500
@@ -1477,7 +1477,7 @@ build_cache (const gchar *path)
if (!validate_file (tmp_cache_path))
{
g_printerr (_("The generated cache was invalid.\n"));
- //g_unlink (tmp_cache_path);
+ g_unlink (tmp_cache_path);
exit (1);
}

View File

@ -8,7 +8,7 @@
PORTNAME= gtk
PORTVERSION= 2.12.8
PORTREVISION?= 0
PORTREVISION?= 1
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/,} \
ftp://ftp.gtk.org/pub/gtk/%SUBDIR%/ \

View File

@ -0,0 +1,11 @@
--- gtk/updateiconcache.c.orig 2008-02-16 11:33:25.000000000 -0500
+++ gtk/updateiconcache.c 2008-02-16 11:33:33.000000000 -0500
@@ -1477,7 +1477,7 @@ build_cache (const gchar *path)
if (!validate_file (tmp_cache_path))
{
g_printerr (_("The generated cache was invalid.\n"));
- //g_unlink (tmp_cache_path);
+ g_unlink (tmp_cache_path);
exit (1);
}