Remove %pre scriptlet

It was introduced to specifically  clean up some leftover files in rear 1.15,
 in 2014 (Issue #361). Since then, these files have not been installed
by any rear release, and thus do not need to be removed on upgrade.
This commit is contained in:
Christopher Engelhard 2020-09-22 19:39:36 +02:00
parent fbebd499c4
commit baa4782806

View File

@ -94,13 +94,6 @@ Professional services and support are available.
%install
%{make_install}
#-- SCRIPTLETS -----------------------------------------------------------------#
%pre
if [ $1 -gt 1 ] ; then
# during upgrade remove obsolete directories
rm -rf %{_datadir}/rear/output/NETFS
fi
#-- FILES ---------------------------------------------------------------------#
%files
%doc MAINTAINERS COPYING README.adoc doc/*.txt