posttrans silenced, the error is appearing only in state, when there is nothing to copy

This commit is contained in:
Jiri Vanek 2016-07-12 17:06:06 +02:00
parent fe7f929ba7
commit 759e70eff3

View File

@ -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 <jvanek@redhat.com> - 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 <releng@fedoraproject.org> - 1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild