try to fix preinst failure on Debian stable systems 0.2.26
authorMichael Prokop <mika@grml.org>
Sat, 3 Mar 2007 17:17:00 +0000 (18:17 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 3 Mar 2007 17:17:00 +0000 (18:17 +0100)
debian/changelog
debian/preinst

index 0393388..7299b2d 100644 (file)
@@ -1,6 +1,7 @@
 grml-etc-core (0.2.26) unstable; urgency=low
 
   * Move /etc/skel/.channels to package grml-etc.
+  * Fix preinst failure of /etc/zsh/zlogin on Debian stable systems.
 
  -- Michael Prokop <mika@grml.org>  Thu,  1 Mar 2007 14:59:51 +0100
 
index 848ecff..f0f894b 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Fre Feb 09 15:24:01 CET 2007 [mika]
+# Latest change: Sam Mär 03 18:16:47 CET 2007 [mika]
 ################################################################################
 
 set -e
@@ -29,7 +29,7 @@ case "$1" in
         # we don't lose any files...
         for file in /etc/zsh/zlogin /etc/zsh/zprofile /etc/zsh/zshenv /etc/zsh/zshrc \
                     /etc/zsh/zlogout /etc/vim/vimrc; do
-               [ -e "$file".original ] || cp -f "$file" "${file}.tmp.$$"
+               [ -e "$file".original ] || cp -f "$file" "${file}.tmp.$$" || /bin/true
                divert_conffile $file && \
                [ -f "$file" ] && rm $file && \
                dpkg-divert --quiet --add --rename --package grml-etc-core --divert "$file".original $file  && \