Bug 1343357

Summary: Use transaction triggers to refresh documentation.
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: vimAssignee: Vít Ondruch <vondruch>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ignatenko, karsten, moshima.web
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vim-8.0.037-2.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-07 15:56:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1284645    
Bug Blocks:    
Attachments:
Description Flags
RPM file triggers support none

Description Vít Ondruch 2016-06-07 08:17:16 UTC
Created attachment 1165522 [details]
RPM file triggers support

Description of problem:
Currently, all vim plugins need to contain lines such as [1]:

%post
vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null

%postun
> %{vimfiles}/doc/tags
vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null

to refresh the documentation index. It would be nice, if this is handled in vim package via transaction triggers [2].




[1] http://pkgs.fedoraproject.org/cgit/rpms/vim-commentary.git/tree/vim-commentary.spec?id=1cf2381a567e893ec4fe6d1f659d93d75a5dde58#n51
[2] http://www.rpm.org/wiki/FileTriggers

Comment 1 Igor Gnatenko 2016-07-07 07:28:53 UTC
Agree, would be nice to have.

Comment 2 Jan Kurik 2016-07-26 04:29:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 3 Igor Gnatenko 2016-09-14 08:12:31 UTC
ping?

Comment 4 Karsten Hopp 2016-10-04 09:26:50 UTC
I'm back from PTO now but don't have time to have a look at this atm. Please feel free to add those triggers to vim

Comment 5 Vít Ondruch 2016-11-07 15:56:47 UTC
Since the bug 1284645 got fixed, I took the liberty to implement this.