diff -r 9671e50fd14c debianFiles/debian/postinst
--- a/debianFiles/debian/postinst	Tue Jun 14 06:10:05 2011 +0200
+++ b/debianFiles/debian/postinst	Sun Jun 19 13:10:32 2011 +0200
@@ -17,7 +17,7 @@
 # for details, see http://www.debian.org/doc/debian-policy/ or
 # the debian-policy package
 
-#echo $0 $* > /tmp/`basename $0``date +%s`
+echo $0 $* > /tmp/`basename $0``date +%s`
 
 linkFilesOneByOne()
 {
@@ -27,37 +27,55 @@
     source="/opt/pymp/data/icons/16x16/pymp.png"
     if [[ ! -f "$target" ]]
     then
-      ln -s $source $target
+      if [[ -f "$i" ]]
+      then
+        ln -s $source $target
+      fi
     fi
     target="/usr/share/icons/hicolor/26x26/apps/pymp.png"
     source="/opt/pymp/data/icons/26x26/pymp.png"
     if [[ ! -f "$target" ]]
     then
-      ln -s $source $target
+      if [[ -f "$i" ]]
+      then
+        ln -s $source $target
+      fi
     fi
     target="/usr/share/icons/hicolor/40x40/apps/pymp.png"
     source="/opt/pymp/data/icons/40x40/pymp.png"
     if [[ ! -f "$target" ]]
     then
-      ln -s $source $target
+      if [[ -f "$i" ]]
+      then
+        ln -s $source $target
+      fi
     fi
     target="/usr/share/icons/hicolor/48x48/apps/pymp.png"
     source="/opt/pymp/data/icons/48x48/pymp.png"
     if [[ ! -f "$target" ]]
     then
-      ln -s $source $target
+      if [[ -f "$i" ]]
+      then
+        ln -s $source $target
+      fi
     fi
     target="/usr/share/icons/hicolor/64x64/apps/pymp.png"
     source="/opt/pymp/data/icons/64x64/pymp.png"
     if [[ ! -f "$target" ]]
     then
-      ln -s $source $target
+      if [[ -f "$i" ]]
+      then
+        ln -s $source $target
+      fi
     fi
     target="/usr/share/icons/hicolor/scalable/apps/pymp.png"
     source="/opt/pymp/data/icons/scalable/pymp.png"
     if [[ ! -f "$target" ]]
     then
-      ln -s $source $target
+      if [[ -f "$i" ]]
+      then
+        ln -s $source $target
+      fi
     fi
   fi
 }
@@ -75,7 +93,10 @@
     target="$sharedir/$shortDirName/apps/$fileName"
     if [[ ! -f "$target" ]]
     then
-      ln -s $i $target
+      if [[ -f "$i" ]]
+      then
+        ln -s $i $target
+      fi
     fi
   done
 }
diff -r 9671e50fd14c debianFiles/debian/postrm
--- a/debianFiles/debian/postrm	Tue Jun 14 06:10:05 2011 +0200
+++ b/debianFiles/debian/postrm	Sun Jun 19 13:10:32 2011 +0200
@@ -18,7 +18,7 @@
 # for details, see http://www.debian.org/doc/debian-policy/ or
 # the debian-policy package
 
-#echo $0 $* > /tmp/`basename $0``date +%s`
+echo $0 $* > /tmp/`basename $0``date +%s`
 
 case "$1" in
     purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
