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

[SCM] Debian packaging of texlive-nonbin) branch, master, updated. debian/all-2012.20130111-1-23-g9a23453



The following commit has been merged in the master branch:
commit 9a234534f5978dcce0a07d210f8eb5f3f1226b38
Author: Norbert Preining <preining@debian.org>
Date:   Fri May 17 15:22:14 2013 +0900

    work on fixes texmf-dist/doc move, still not there

diff --git a/TODO_URGENT b/TODO_URGENT
new file mode 100644
index 0000000..f1d1151
--- /dev/null
+++ b/TODO_URGENT
@@ -0,0 +1,4 @@
+
+ALL PACKAGES HAVE TO CONFLCIT WITH texlive-base << 2013 
+OTHERWISE texmf-dist/doc move will NOT work!!!
+
diff --git a/texlive-base/debian/changelog b/texlive-base/debian/changelog
index 2e3b6d9..4085a11 100644
--- a/texlive-base/debian/changelog
+++ b/texlive-base/debian/changelog
@@ -1,8 +1,9 @@
 texlive-base (2013.20130517-1) unstable; urgency=low
 
   * new upstream checkout
+  * convert symlink texmf-dist/doc to a dir, move documentation there
 
- -- Norbert Preining <preining@debian.org>  Fri, 17 May 2013 11:09:07 +0900
+ -- Norbert Preining <preining@debian.org>  Fri, 17 May 2013 14:55:46 +0900
 
 texlive-base (2012.20130315-1) experimental; urgency=low
 
diff --git a/texlive-base/debian/texlive-base.postinst.pre b/texlive-base/debian/texlive-base.postinst.pre
index 6614a36..4c8de06 100644
--- a/texlive-base/debian/texlive-base.postinst.pre
+++ b/texlive-base/debian/texlive-base.postinst.pre
@@ -38,7 +38,15 @@ case "$1" in
       ucfr --purge texlive-base $file
     fi
   done
-     
+ 
+  # remove preinst created backup of link of texmf-dist/doc
+  if dpkg --compare-versions "$trigger" lt "2013" ; then
+    if [ -L /usr/share/texlive/texmf-dist/doc.dpkg-remove ] ; then
+      rm -f /usr/share/texlive/texmf-dist/doc.dpkg-remove
+    fi
+  fi
+
+
   mktexlsr /usr/share/texlive/texmf /usr/share/texmf /var/lib/texmf 
   for binary in dvips dvipdfmx xdvi pdftex; do
     if localpaper=$(tl-paper get $binary); then
diff --git a/texlive-base/debian/texlive-base.postrm.pre b/texlive-base/debian/texlive-base.postrm.pre
new file mode 100644
index 0000000..fbc8963
--- /dev/null
+++ b/texlive-base/debian/texlive-base.postrm.pre
@@ -0,0 +1,13 @@
+
+case $action in
+  abort-install|abort-upgrade)
+    syml=/usr/share/texlive/texmf-dist/doc
+    if [ -n "$2" ] && dpkg --compare-versions "$2" lt "2013" ; then
+      if [ -L $syml.dpkg-remove ] && [ ! -e $syml ] ; then
+        echo "Reinstatiating $syml"
+        mv $syml.dpkg-remove $syml
+      fi
+    fi
+  ;;
+esac
+
diff --git a/texlive-base/debian/texlive-base.preinst.pre b/texlive-base/debian/texlive-base.preinst.pre
new file mode 100644
index 0000000..7ee2eb9
--- /dev/null
+++ b/texlive-base/debian/texlive-base.preinst.pre
@@ -0,0 +1,17 @@
+
+# prepare for change of symlink to real dir
+
+slink=/usr/share/texlive/texmf-dist/doc
+slinktarget=../../doc/texlive-doc
+
+case "$1" in
+  upgrade|install)
+    ov=$2
+    if [ -n "$ov" ] && dpkg --compare-versions "$ov" lt 2013 ; then
+      if [ -L $slink ] && [ "$(readlink $slink)" = $slinktarget ] ; then
+        mv $slink $slink.dpkg-remove
+      fi
+    fi
+  ;;
+esac
+

-- 
Debian packaging of texlive-nonbin)


Reply to: