From 6193e553d31bf5aba61f8ef5ffd072ac3805ef7a Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 3 Mar 2007 18:17:00 +0100 Subject: [PATCH] try to fix preinst failure on Debian stable systems --- debian/changelog | 1 + debian/preinst | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0393388..7299b2d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 1 Mar 2007 14:59:51 +0100 diff --git a/debian/preinst b/debian/preinst index 848ecff..f0f894b 100755 --- a/debian/preinst +++ b/debian/preinst @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # 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 && \ -- 2.1.4