!21 Fix .NeedRebuild unfound when removing rpm
Merge pull request !21 from ultra_planet/master
This commit is contained in:
commit
b776b4a685
9
pcp.spec
9
pcp.spec
@ -9,7 +9,7 @@
|
|||||||
Name: pcp
|
Name: pcp
|
||||||
Version: 4.1.3
|
Version: 4.1.3
|
||||||
Summary: System-level performance monitoring and performance management
|
Summary: System-level performance monitoring and performance management
|
||||||
Release: 8
|
Release: 9
|
||||||
License: GPLv2+ and LGPLv2.1+ and CC-BY
|
License: GPLv2+ and LGPLv2.1+ and CC-BY
|
||||||
URL: https://pcp.io
|
URL: https://pcp.io
|
||||||
Source0: https://dl.bintray.com/pcp/source/pcp-4.1.3.tar.gz
|
Source0: https://dl.bintray.com/pcp/source/pcp-4.1.3.tar.gz
|
||||||
@ -1642,6 +1642,7 @@ systemctl stop pmie.service >/dev/null 2>&1
|
|||||||
systemctl stop pmproxy.service >/dev/null 2>&1
|
systemctl stop pmproxy.service >/dev/null 2>&1
|
||||||
systemctl stop pmcd.service >/dev/null 2>&1
|
systemctl stop pmcd.service >/dev/null 2>&1
|
||||||
PCP_PMNS_DIR=/var/lib/pcp/pmns
|
PCP_PMNS_DIR=/var/lib/pcp/pmns
|
||||||
|
rm -f "$PCP_PMNS_DIR/.NeedRebuild" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post webapi
|
%post webapi
|
||||||
@ -1755,7 +1756,7 @@ if [ $1 -eq 1 ] && [ -x /usr/bin/systemctl ] ; then
|
|||||||
/usr/bin/systemctl --no-reload preset pmie.service || :
|
/usr/bin/systemctl --no-reload preset pmie.service || :
|
||||||
fi
|
fi
|
||||||
systemctl condrestart pmproxy.service >/dev/null 2>&1
|
systemctl condrestart pmproxy.service >/dev/null 2>&1
|
||||||
cd $PCP_PMNS_DIR && ./Rebuild -s
|
cd $PCP_PMNS_DIR && ./Rebuild -s && rm -f .NeedRebuild
|
||||||
cd
|
cd
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%postun
|
%postun
|
||||||
@ -1866,6 +1867,7 @@ fi
|
|||||||
/usr/lib64/libpcp_trace.so.2
|
/usr/lib64/libpcp_trace.so.2
|
||||||
/usr/lib64/libpcp_import.so.1
|
/usr/lib64/libpcp_import.so.1
|
||||||
/usr/lib64/libpcp_web.so.1
|
/usr/lib64/libpcp_web.so.1
|
||||||
|
%exclude /var/lib/pcp/pmns/.NeedRebuild
|
||||||
|
|
||||||
%files monitor
|
%files monitor
|
||||||
|
|
||||||
@ -2213,6 +2215,9 @@ fi
|
|||||||
%config(noreplace) /etc/pcp/pmrep/*
|
%config(noreplace) /etc/pcp/pmrep/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 28 2020 lingsheng <lingsheng@huawei.com> - 4.1.3-9
|
||||||
|
- Fix .NeedRebuild unfound when removing rpm
|
||||||
|
|
||||||
* Tue Aug 04 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 4.1.3-8
|
* Tue Aug 04 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 4.1.3-8
|
||||||
- Fix compile failure in make multithreading
|
- Fix compile failure in make multithreading
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user