From 3f98a90c4bf38b7bed546de94e744465b1e5b514 Mon Sep 17 00:00:00 2001
From: Andreas Naumann <andreas.naumann@tu-dresden.de>
Date: Thu, 16 Dec 2010 12:47:52 +0000
Subject: [PATCH] AMDiS also needs debian update :)

---
 AMDiS/postrm.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/AMDiS/postrm.in b/AMDiS/postrm.in
index f774705b..e4d08804 100644
--- a/AMDiS/postrm.in
+++ b/AMDiS/postrm.in
@@ -1,10 +1,13 @@
 #!/bin/sh
+if "$1" = "upgrade" ; then 
+  exit 0
+fi
 NEWDIRS_SEMI="@deb_add_dirs@"
 NEWDIRS=`echo ${NEWDIRS_SEMI} | sed 's/;/ /g'`
 BASEDIR=@CPACK_INSTALL_PREFIX@
 #echo "will create the remove directories:"
 for d in ${NEWDIRS}; do
 #  echo "${BASEDIR}${d}"
-   rm -rf ${BASEDIR}${d}
+   rm -r ${BASEDIR}${d} > /dev/null 2> /dev/null
 done
-
+exit 0
-- 
GitLab