!22 preun remove redundant symbolic links

From: @Linux_zhang2024 
Reviewed-by: @gaoruoshu, @zengwefeng, @zhoupengcheng11 
Signed-off-by: @gaoruoshu, @zengwefeng
This commit is contained in:
openeuler-ci-bot 2024-10-12 06:34:04 +00:00 committed by Gitee
commit 68e59c947c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
Name: cscope
Summary: a developer's tool for browsing source code
Version: 15.9
Release: 6
Release: 7
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{name}-%{version}.tar.gz
URL: http://cscope.sourceforge.net
License: BSD and GPLv2+
@ -68,13 +68,15 @@ rm -f %{_datadir}/emacs/site-lisp/xcscope.el
ln -sf %{_datadir}/%{name}/cctree.vim %{_datadir}/vim/vimfiles/plugin/cctree.vim
%triggerun -- vim-filesystem
if [ $2 -gt 0 ]
if [ $1 -eq 0 ] || [ $2 -gt 0 ]
then
exit 0
rm -f %{_datadir}/vim/vimfiles/plugin/cctree.vim ||:
fi
rm -f %{_datadir}/vim/vimfiles/plugin/cctree.vim
%changelog
* Wed Jul 31 2024 zhangruifang <zhangruifang@h-partners.com> - 15.9-7
- %%preun remove redundant symbolic links
* Mon Oct 24 2022 yanglongkang<yanglongkang@h-partners.com> - 15.9-6
- rebuild for next release