Re: Reduce the server load by asking firefox to not cache on disk
[Klaus Knopper]
> Because, before the package can possibly install is own version of
> /usr/lib/iceweasel/iceweasel, it has to move away the original file
> with the same name. Apparently, preinst is correct for this, because
> postinst would be too late.
Right. One problem with this approach is that APT can not ensure the
correct installation ordering if installing both iceweasel and
firefox-tuning using the same apt-get run. In other words, this work:
apt-get install iceweasel
apt-get install firefox-tuning
while this will not always work:
apt-get install iceweasel firefox-tuning
That should be solved, to ensure predictable behaviour. One way would
be to install the script as
/usr/lib/iceweasel/iceweasel-firefox-tuning, do the diverting in the
postinst and add a dependency from firefox-tuning to iceweasel.
Anyone got a better idea?
> Maybe
> ICETMP="${TMPDIR:-/tmp}"
> to be on the safe side in case $TMPDIR is not set for some reason.
Done.
I've fixed several issues discovered by lintian and myself in the
package and commited fixes to svn. Please have a look, and consider
uploading the fixed package to your repository.
<URL: svn+ssh://svn.debian.org/svn/debian-edu/trunk/src/firefox-tuning/ >
<URL: svn://svn.debian.org/debian-edu/trunk/src/firefox-tuning/ >
--
Happy hacking
Petter Reinholdtsen
Reply to: