diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-28 09:57:12 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-28 09:57:12 +0200 |
commit | 81d92cd0fa293e44bbb063d373d9289ddc358c99 (patch) | |
tree | 64854f4cfe8806c70b0830e50c11410e4f9cb8bd | |
parent | 45983d13072020f5d210b9c613f0db5636dad6a3 (diff) | |
download | nx-libs-81d92cd0fa293e44bbb063d373d9289ddc358c99.tar.gz nx-libs-81d92cd0fa293e44bbb063d373d9289ddc358c99.tar.bz2 nx-libs-81d92cd0fa293e44bbb063d373d9289ddc358c99.zip |
Xinerama symlinking: Create / remove folder containing Xinerama sylinks on installation/upgrade and removal.
-rwxr-xr-x | debian/nxagent.postinst.in | 1 | ||||
-rwxr-xr-x | debian/nxagent.prerm | 4 |
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) |