[packages/rpm] - remove /var/cache/hrmib in post
baggins
baggins at pld-linux.org
Wed Mar 10 09:05:56 CET 2021
commit ee63ba8f4ef3299a732825ad0a51ec535f8911b9
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Mar 10 09:05:19 2021 +0100
- remove /var/cache/hrmib in post
rpm.spec | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/rpm.spec b/rpm.spec
index 32e18a0..ad63287 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -791,6 +791,13 @@ if [ -e /var/lib/rpm/Packages ]; then
fi
fi
+%post
+if [ -d /var/cache/hrmib ]; then
+ %{__rm} -rf /var/cache/hrmib
+ echo "HR-MIB is not supported by this rpm version."
+ echo "/var/cache/hrmib has been removed."
+fi
+
%post lib -p /sbin/ldconfig
%postun lib -p /sbin/ldconfig
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/ee63ba8f4ef3299a732825ad0a51ec535f8911b9
More information about the pld-cvs-commit
mailing list