# HG changeset patch # User Pascal Bellard # Date 1205690145 -3600 # Node ID 510870ca891bc12fb9684a11ac00a2b3aaffd68d # Parent 97df1279a37e7302192ea0d43bad654a670d0224 Get-skype, get-flash-plugin: allow reinstall diff -r 97df1279a37e -r 510870ca891b get-flash-plugin/stuff/get-flash-plugin --- a/get-flash-plugin/stuff/get-flash-plugin Sun Mar 16 14:39:17 2008 +0100 +++ b/get-flash-plugin/stuff/get-flash-plugin Sun Mar 16 18:55:45 2008 +0100 @@ -6,6 +6,10 @@ exit 0 fi +if [ -d /var/lib/tazpkg/installed/flash-plugin ]; then + tazpkg remove flash-plugin + [ -d /var/lib/tazpkg/installed/flash-plugin ] && exit 1 +fi DIR=install_flash_player_9_linux TARBALL=$DIR.tar.gz WEB_SITE="http://www.adobe.com/products/flash/" diff -r 97df1279a37e -r 510870ca891b get-skype/stuff/get-skype --- a/get-skype/stuff/get-skype Sun Mar 16 14:39:17 2008 +0100 +++ b/get-skype/stuff/get-skype Sun Mar 16 18:55:45 2008 +0100 @@ -6,6 +6,12 @@ exit 0 fi +if [ -d /var/lib/tazpkg/installed/skype ]; then + tazpkg remove skype + [ -d /var/lib/tazpkg/installed/skype ] && exit 1 +fi +[ -d /usr/share/skype ] && rm -rf /usr/share/skype + # Download tarball WEB_SITE="http://www.skype.com/" wget ${WEB_SITE}go/getskype-linux-static @@ -20,15 +26,15 @@ # Install files mkdir -p /usr/share/skype -mv */ LICENSE /usr/share/skype +mv */ LICENSE README /usr/share/skype mv skype /usr/bin mv skype.conf /etc mv skype.desktop /usr/share/applications ln /usr/share/skype/icons/*16.png /usr/share/pixmaps/skype.png # Create pseudo package -mkdir -p fs/usr/share/skype -mv README fs/usr/share/skype +mkdir -p fs/usr/bin +cp /usr/bin/get-skype fs/usr/bin find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz cat > files.list < receipt <