aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/nxagent.postinst.in1
-rwxr-xr-xdebian/nxagent.prerm4
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/nxagent.postinst.in b/debian/nxagent.postinst.in
index 4ad52a525..95879b943 100755
--- a/debian/nxagent.postinst.in
+++ b/debian/nxagent.postinst.in
@@ -26,6 +26,7 @@ case "$1" in
libdir=/usr/lib/#DEB_BUILD_MULTIARCH#
+ mkdir -p /usr/lib/nx/X11/Xinerama/
# Already existent files are not removed.
# Users will need to explicitly remove them and (re-) configure this package.
if test -e $libdir/libX11.so.6; then
diff --git a/debian/nxagent.prerm b/debian/nxagent.prerm
index edc882a46..019284a16 100755
--- a/debian/nxagent.prerm
+++ b/debian/nxagent.prerm
@@ -28,10 +28,12 @@ case "$1" in
rm -f /usr/lib/nx/X11/Xinerama/libNX_Xext.so.6
fi
-
if test -e /usr/lib/nx/X11/Xinerama/libXinerama.so.1; then
rm -f /usr/lib/nx/X11/Xinerama/libXinerama.so.1
fi
+
+ rmdir --ignore-fail-on-non-empty /usr/lib/nx/X11/Xinerama
+
fi
;;
deconfigure|upgrade|failed-upgrade)