Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
adding all the "rm " to post deinstall was a bad idea, add finer workarounds
Baptiste Daroussin committed 14 years ago
commit ea2925aee5b619c00947d07dca914d35e2f6ae39
parent f564d60
1 file changed +2 -1
modified libpkg/pkg_ports.c
@@ -160,7 +160,8 @@ ports_parse_plist(struct pkg *pkg, char *plist)
					/* more workarounds */
					if (strstr(cmd, "rmdir") || strstr(cmd, "kldxref") ||
					    strstr(cmd, "mkfontscale") || strstr(cmd, "mkfontdir") ||
-
					    strstr(cmd, "fc-cache") || strstr(cmd, "rm ")) {
+
					    strstr(cmd, "fc-cache") || strstr(cmd, "fonts.dir") ||
+
					    strstr(cmd, "fonts.scale") || strstr(cmd, "gtk-update-icon-cache")) {
						post_unexec_append(post_unexec_scripts, "%s%s\n", comment, cmd);
					} else
						sbuf_printf(unexec_scripts, "%s%s\n",comment, cmd);