From baa47828063bcd3da5e1e11754a157a1aba3c592 Mon Sep 17 00:00:00 2001 From: Christopher Engelhard Date: Tue, 22 Sep 2020 19:39:36 +0200 Subject: [PATCH] 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. --- rear.spec | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rear.spec b/rear.spec index 651ced6..3508b35 100644 --- a/rear.spec +++ b/rear.spec @@ -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