From a786c09aef058e890093f7da962a5b3ca448cacd811ac5567fac4bf5c169352d Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Sat, 15 Oct 2011 14:18:03 +0000 Subject: [PATCH] Accepting request 87871 from home:-miska- - only fix files that exists in %post (fixes build in arm port) OBS-URL: https://build.opensuse.org/request/show/87871 OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=99 --- postfix.changes | 5 +++++ postfix.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/postfix.changes b/postfix.changes index 7488339..00ec54a 100644 --- a/postfix.changes +++ b/postfix.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 14 16:43:02 CEST 2011 - mhrusecky@suse.cz + +- only fix files that exists in %post + ------------------------------------------------------------------- Sun Oct 9 04:30:54 UTC 2011 - crrodriguez@opensuse.org diff --git a/postfix.spec b/postfix.spec index c038d5f..eac1158 100644 --- a/postfix.spec +++ b/postfix.spec @@ -391,7 +391,7 @@ else fi fi # before fillup we need to fix something -%{__sed} -i \ +[ \! -f %{_sysconfdir}/sysconfig/%{name} ] || %{__sed} -i \ -e "s/POSTFIX_SMTPD_SENDERNT_RESTRICTIONS/POSTFIX_SMTPD_SENDER_RESTRICTIONS/" \ %{_sysconfdir}/sysconfig/%{name} %{fillup_and_insserv -y postfix}