[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[cm-super] 01/01: allow for installation without presence of /u/s/d (Closes: 860143)



This is an automated email from the git hooks/post-receive script.

preining pushed a commit to branch master
in repository cm-super.

commit dcfeb1e0336a70a52535a6b3c0f4f99ab298d746
Author: Norbert Preining <preining@debian.org>
Date:   Wed Apr 12 15:27:05 2017 +0900

    allow for installation without presence of /u/s/d (Closes: 860143)
---
 debian/changelog             | 6 ++++++
 debian/cm-super-x11.postinst | 8 +++++---
 debian/cm-super.postinst     | 6 ++++--
 3 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e0b3255..4a3c6c0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+cm-super (0.3.4-10) UNRELEASED; urgency=medium
+
+  * allow for installation without presence of /u/s/d (Closes: 860143)
+
+ -- Norbert Preining <preining@debian.org>  Wed, 12 Apr 2017 15:26:15 +0900
+
 cm-super (0.3.4-9) unstable; urgency=low
 
   * upload to unstable
diff --git a/debian/cm-super-x11.postinst b/debian/cm-super-x11.postinst
index 5d3d1af..ab0ae40 100644
--- a/debian/cm-super-x11.postinst
+++ b/debian/cm-super-x11.postinst
@@ -4,9 +4,11 @@ case "$1" in
     configure)
         # remove /usr/share/doc/cm-super-x11 directory and make it a link
 	if ! [ -L /usr/share/doc/cm-super-x11 ] ; then
-	  # it should not contain anything by now ...
-	  rmdir /usr/share/doc/cm-super-x11
-	  ln -s cm-super-minimal /usr/share/doc/cm-super-x11
+	  if [ -d /usr/share/doc/cm-super-x11 ] ; then
+	    # it should not contain anything by now ...
+	    rmdir /usr/share/doc/cm-super-x11
+	    ln -s cm-super-minimal /usr/share/doc/cm-super-x11
+	  fi
 	fi
     ;;
 
diff --git a/debian/cm-super.postinst b/debian/cm-super.postinst
index d4bacf9..763095b 100644
--- a/debian/cm-super.postinst
+++ b/debian/cm-super.postinst
@@ -6,8 +6,10 @@ case "$1" in
         # remove /usr/share/doc/cm-super directory and make it a link
 	if ! [ -L /usr/share/doc/cm-super ] ; then
 	  # it should not contain anything by now ...
-	  rmdir /usr/share/doc/cm-super
-	  ln -s cm-super-minimal /usr/share/doc/cm-super
+	  if [ -d usr/share/doc/cm-super ] ; then
+	    rmdir /usr/share/doc/cm-super
+	    ln -s cm-super-minimal /usr/share/doc/cm-super
+	  fi
 	fi
     	cd /usr/share/texmf/fonts/type1/public/cm-super
 	tempfile=`mktemp -p /tmp cm-super.checkrun.XXXXXXXX`

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/cm-super.git


Reply to: