packages/mail-client/mail-notification/files/disable-icon-cache-update.patch (1381B) - raw
1 Source: Dan Callaghan <djc@djc.id.au>
2 Reason: we handle icon cache updates outside of the build
3 Upstream: not yet
4
5 diff -ur mail-notification-5.4/jbsrc/jb.c mail-notification-5.4-hacked/jbsrc/jb.c
6 --- mail-notification-5.4/jbsrc/jb.c 2008-05-23 01:47:04.000000000 +1000
7 +++ mail-notification-5.4-hacked/jbsrc/jb.c 2010-10-09 14:01:58.038290732 +1000
8 @@ -156,6 +156,7 @@
9 jb_variable_add_bool("debug", NULL, NULL, 0, FALSE);
10 jb_variable_add_bool("regression-tests", NULL, NULL, 0, FALSE);
11 jb_variable_add_bool("gconf-sanity-check", NULL, NULL, JB_VARIABLE_C_DEFINE, TRUE);
12 + jb_variable_add_bool("update-gtk-icon-cache", NULL, NULL, 0, TRUE);
13 }
14
15 void
16 @@ -364,10 +365,12 @@
17 if (jb_variable_get_bool("hotmail"))
18 jb_group_add_data_file(group, "hotmail.png", "$pkgdatadir");
19
20 - rule = jb_rule_new();
21 - jb_rule_set_install_message(rule, "updating the GTK+ icon cache");
22 - jb_rule_add_install_command(rule, "-gtk-update-icon-cache -f -t $datadir/icons/hicolor");
23 - jb_group_add_resource(group, JB_GROUP_RESOURCE(rule));
24 + if (jb_variable_get_bool("update-gtk-icon-cache")) {
25 + rule = jb_rule_new();
26 + jb_rule_set_install_message(rule, "updating the GTK+ icon cache");
27 + jb_rule_add_install_command(rule, "-gtk-update-icon-cache -f -t $datadir/icons/hicolor");
28 + jb_group_add_resource(group, JB_GROUP_RESOURCE(rule));
29 + }
30
31 jb_group_add(group);
32