From 2aeb116b0d72af0c1fa2b804629985b363bfe51d Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Thu, 11 Jul 2002 23:38:42 +0000 Subject: - Fixed broken update of konquerorrc in %post and %preun scriptlets. --- etc/plptools.spec.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'etc') diff --git a/etc/plptools.spec.in b/etc/plptools.spec.in index 6c43776..b5edadb 100644 --- a/etc/plptools.spec.in +++ b/etc/plptools.spec.in @@ -231,12 +231,10 @@ cp /etc/rc.config /etc/rc.config.old && mv /etc/rc.config.$$ /etc/rc.config %{_initrddir}/psion condrestart KONQRC=`kde-config --expandvars --install config`/konquerorrc if grep -q '\[Notification Messages\]' $KONQRC ; then -( - sed -n -e '1,/\[Notification Messages\]/p' - echo askSaveinode/x-psion-drive=No - sed -n -e '/\[Notification Messages\]/,$p' | tail +1 -) > /tmp/$$ -mv /tmp/$$ $KONQRC + cat $KONQRC | grep -v "askSaveinode/x-psion-drive=No" | sed \ + -e '/\[Notification Messages\]/a\' \ + -e 'askSaveinode/x-psion-drive=No' > /tmp/$$ + mv /tmp/$$ $KONQRC else cat>>$KONQRC<