From caa5ba634373ca647f4d15fbbd1850cafc45f9ae Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Fri, 27 Jul 2012 20:37:02 +0200 Subject: [PATCH] Remove leftover files from previous installs (bug 1627) --- debian/postinst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/debian/postinst b/debian/postinst index f48489e7..fd5af1b2 100644 --- a/debian/postinst +++ b/debian/postinst @@ -4,6 +4,17 @@ SYMLINKS=/opt/gpodder/optification.symlinks +# Clean up old leftover stuff from previous installs (gPodder bug 1672) +DIST_PACKAGES=/usr/lib/python2.6/dist-packages +echo "Checking for leftover files in $DIST_PACKAGES" +for directory in gpodder mygpoclient; do + directory=$DIST_PACKAGES/$directory + if [ -e $directory ]; then + echo " Removing $directory" + rm -rf $directory + fi +done + rm -f $SYMLINKS link_to() { -- 2.11.4.GIT