Browse files

Remove leftover files from previous installs (bug 1627)

  • Loading branch information...
1 parent 07dc226 commit caa5ba634373ca647f4d15fbbd1850cafc45f9ae @thp thp committed Jul 27, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 debian/postinst
View
11 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() {

0 comments on commit caa5ba6

Please sign in to comment.