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:
parent
fbebd499c4
commit
baa4782806
@ -94,13 +94,6 @@ Professional services and support are available.
|
|||||||
%install
|
%install
|
||||||
%{make_install}
|
%{make_install}
|
||||||
|
|
||||||
#-- SCRIPTLETS -----------------------------------------------------------------#
|
|
||||||
%pre
|
|
||||||
if [ $1 -gt 1 ] ; then
|
|
||||||
# during upgrade remove obsolete directories
|
|
||||||
rm -rf %{_datadir}/rear/output/NETFS
|
|
||||||
fi
|
|
||||||
|
|
||||||
#-- FILES ---------------------------------------------------------------------#
|
#-- FILES ---------------------------------------------------------------------#
|
||||||
%files
|
%files
|
||||||
%doc MAINTAINERS COPYING README.adoc doc/*.txt
|
%doc MAINTAINERS COPYING README.adoc doc/*.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user