Skip to content

Commit

Permalink
Run "makecache" periodically to keep the cache ready.
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonmessmer committed Oct 22, 2024
1 parent 17941ea commit 1efad71
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dnf5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,23 @@ DNF5 is a command-line package manager that automates the process of installing,
upgrading, configuring, and removing computer programs in a consistent manner.
It supports RPM packages, modulemd modules, and comps groups & environments.

%post
%systemd_post dnf5-makecache.timer

%preun
%systemd_preun dnf5-makecache.timer

%postun
%systemd_postun_with_restart dnf5-makecache.timer

%files -f dnf5.lang
%{_bindir}/dnf5
%if %{with dnf5_obsoletes_dnf}
%{_bindir}/dnf
%{_bindir}/yum
%endif
%{_unitdir}/dnf5-makecache.service
%{_unitdir}/dnf5-makecache.timer

%if 0%{?fedora} || 0%{?rhel} > 10
%{_bindir}/microdnf
Expand Down

0 comments on commit 1efad71

Please sign in to comment.