From 0ad65345c0c883c637514066f57e097793746f13 Mon Sep 17 00:00:00 2001 From: lingsheng Date: Fri, 28 Aug 2020 17:40:46 +0800 Subject: [PATCH] Fix .NeedRebuild unfound when removing rpm --- pcp.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pcp.spec b/pcp.spec index 8db2389..97e4a18 100644 --- a/pcp.spec +++ b/pcp.spec @@ -9,7 +9,7 @@ Name: pcp Version: 4.1.3 Summary: System-level performance monitoring and performance management -Release: 8 +Release: 9 License: GPLv2+ and LGPLv2.1+ and CC-BY URL: https://pcp.io Source0: https://dl.bintray.com/pcp/source/pcp-4.1.3.tar.gz @@ -1640,6 +1640,7 @@ systemctl stop pmie.service >/dev/null 2>&1 systemctl stop pmproxy.service >/dev/null 2>&1 systemctl stop pmcd.service >/dev/null 2>&1 PCP_PMNS_DIR=/var/lib/pcp/pmns +rm -f "$PCP_PMNS_DIR/.NeedRebuild" >/dev/null 2>&1 fi %post webapi @@ -1753,7 +1754,7 @@ if [ $1 -eq 1 ] && [ -x /usr/bin/systemctl ] ; then /usr/bin/systemctl --no-reload preset pmie.service || : fi systemctl condrestart pmproxy.service >/dev/null 2>&1 -cd $PCP_PMNS_DIR && ./Rebuild -s +cd $PCP_PMNS_DIR && ./Rebuild -s && rm -f .NeedRebuild cd /sbin/ldconfig %postun @@ -1864,6 +1865,7 @@ fi /usr/lib64/libpcp_trace.so.2 /usr/lib64/libpcp_import.so.1 /usr/lib64/libpcp_web.so.1 +%exclude /var/lib/pcp/pmns/.NeedRebuild %files monitor @@ -2211,6 +2213,9 @@ fi %config(noreplace) /etc/pcp/pmrep/* %changelog +* Fri Aug 28 2020 lingsheng - 4.1.3-9 +- Fix .NeedRebuild unfound when removing rpm + * Tue Aug 18 2020 senlin - 4.1.3-8 - add release for update