aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3/34
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-06 14:00:31 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-06 14:00:31 -0300
commit2fd9a33b52bddc572e285603226f01749e155ba2 (patch)
treed387745d68a7cc8c6cd28cf64a29bc2eadaad194 /config/squid3/34
parent9b93aba9af68963dcac22679361b7d105cbec999 (diff)
downloadpfsense-packages-2fd9a33b52bddc572e285603226f01749e155ba2.tar.gz
pfsense-packages-2fd9a33b52bddc572e285603226f01749e155ba2.tar.bz2
pfsense-packages-2fd9a33b52bddc572e285603226f01749e155ba2.zip
Add a note about intl error files
Diffstat (limited to 'config/squid3/34')
-rwxr-xr-xconfig/squid3/34/squid.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index 29c71dbf..d81f36b5 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -376,6 +376,7 @@ function squid_deinstall_command() {
$logdir = ($settings['log_dir'] ? $settings['log_dir'] : '/var/squid/logs');
update_status("Removing cache ... One moment please...");
update_output_window("$plswait_txt");
+ // XXX: Is it ok to remove cache and logs? It's going to happen every time package is updated
mwexec_bg("rm -rf {$cachedir}");
mwexec("rm -rf {$logdir}");
update_status("Finishing package cleanup.");
@@ -390,6 +391,15 @@ function squid_deinstall_command() {
function squid_before_form_general(&$pkg) {
$values = get_dir(SQUID_CONFBASE . '/errors/');
+ /*
+ * XXX: This logic is broken. Probably the idea in the past
+ * was to skip '.', '..'. 'COPYRIGHT' and 'TRANSLATORS' and
+ * errors subdirectories used to be more meaning, like 'English'
+ * or Brazillian_Portuguese.
+ *
+ * Nowadays they are 'en', 'pt-br', ... and also there is a
+ * 'templates' directory to be skipped
+ */
// Get rid of '..' and '.' and ...
array_shift($values);
array_shift($values);