From 759e70eff3fa9f75d10f10840fe39ea5d6f26a7c Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Tue, 12 Jul 2016 17:06:06 +0200 Subject: [PATCH] posttrans silenced, the error is appearing only in state, when there is nothing to copy --- copy-jdk-configs.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/copy-jdk-configs.spec b/copy-jdk-configs.spec index 376c897..30ac2fb 100644 --- a/copy-jdk-configs.spec +++ b/copy-jdk-configs.spec @@ -5,7 +5,7 @@ Name: copy-jdk-configs Version: 1.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: JDKs configuration files copier License: BSD @@ -59,13 +59,16 @@ cp -a %{SOURCE0} $RPM_BUILD_ROOT/%{_libexecdir}/%{file} %posttrans # remove file created in pretrans # echo "removing %{rpm_state_dir}/%{file}" || : -rm "%{rpm_state_dir}/%{file}" || : +rm "%{rpm_state_dir}/%{file}" 2> /dev/null || : %files %{_libexecdir}/%{file} %license LICENSE %changelog +* Tue Jul 12 2016 Jiri Vanek - 1.1-5 +- posttrans silenced, the error is appearing only in state, when there is nothing to copy + * Wed Feb 03 2016 Fedora Release Engineering - 1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild