use file triggers for cache regen
This commit is contained in:
parent
4344781849
commit
eecef8dc75
@ -5,7 +5,7 @@
|
||||
Summary: Utilities to generate, maintain and access the AppStream database
|
||||
Name: appstream
|
||||
Version: 0.11.5
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
|
||||
# lib LGPLv2+, tools GPLv2+
|
||||
License: GPLv2+ and LGPLv2+
|
||||
@ -109,8 +109,20 @@ mv %{buildroot}%{_datadir}/metainfo/*.xml \
|
||||
%posttrans
|
||||
%{_bindir}/appstreamcli refresh --force >& /dev/null ||:
|
||||
|
||||
## use file triggers instead of static pkg names
|
||||
## other repos can provide appdata too
|
||||
%if 1
|
||||
## not sure how smart appstreamcli is about cache validation
|
||||
## to judge if --force is really needed here or not -- rex
|
||||
%transfiletriggerin -- %{_datadir}/app-info/xmls
|
||||
%{_bindir}/appstreamcli refresh --force >& /dev/null ||:
|
||||
|
||||
%transfiletriggerpostun -- %{_datadir}/app-info/xmls
|
||||
%{_bindir}/appstreamcli refresh >& /dev/null ||:
|
||||
%else
|
||||
%triggerun -- appstream-data
|
||||
%{_bindir}/appstreamcli refresh >& /dev/null ||:
|
||||
%endif
|
||||
|
||||
%files -f appstream.lang
|
||||
%doc AUTHORS
|
||||
@ -164,6 +176,9 @@ mv %{buildroot}%{_datadir}/metainfo/*.xml \
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Sep 12 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.11.5-2
|
||||
- use file triggers for cache regen
|
||||
|
||||
* Mon Sep 11 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.11.5-1
|
||||
- 0.11.5 (#1486970)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user