From 2fd9a33b52bddc572e285603226f01749e155ba2 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 6 May 2015 14:00:31 -0300 Subject: Add a note about intl error files --- config/squid3/34/squid.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'config') 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); -- cgit v1.2.3