wok-current rev 1702

firefox: keep plugins during upgrade
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 13 16:06:05 2008 +0000 (2008-11-13)
parents 667ad83cd8e4
children 6db4741ea7a4
files firefox/receipt
line diff
     1.1 --- a/firefox/receipt	Thu Nov 13 12:19:45 2008 +0000
     1.2 +++ b/firefox/receipt	Thu Nov 13 16:06:05 2008 +0000
     1.3 @@ -76,6 +76,9 @@
     1.4  {
     1.5  	local root
     1.6  	root=$1
     1.7 +	# Get old plugins
     1.8 +	mkdir /tmp/firefox-plugins-$$
     1.9 +	cp -a $root/usr/lib/firefox-*/plugins/* /tmp/firefox-plugins-$$ 2> /dev/null
    1.10  	# Remove old libs
    1.11  	rm -rf $root/usr/lib/firefox-*
    1.12  }
    1.13 @@ -87,4 +90,10 @@
    1.14  		sed -i 's/en-US/fr/' \
    1.15  		$root/etc/firefox/pref/firefox-l10n.js
    1.16  	fi
    1.17 +	for i in /tmp/firefox-plugins-$$/* ; do
    1.18 +		[ -e $i ] || continue
    1.19 +		[ -e /usr/lib/firefox-*/plugins/$(basename $i) ] && continue
    1.20 +		cp -a $i /usr/lib/firefox-*/plugins/
    1.21 +	done
    1.22 +	rm -rf /tmp/firefox-plugins-$$
    1.23  }