commit: 1bf94ee45ca93a214be3fa2dda29b1d9fd90e0a9 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Aug 11 01:58:59 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Aug 11 02:05:18 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bf94ee4
sys-process/htop: [QA] update caches We can use xdg-utils unconditionally given it doesn't introduce a dependency. (When a package needing xdg-utils is installed, it'll update all the caches for us.) Closes: https://bugs.gentoo.org/787470 Thanks-to: Ionen Wolkens <ionen <AT> gentoo.org> Signed-off-by: Sam James <sam <AT> gentoo.org> sys-process/htop/htop-3.0.5-r1.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys-process/htop/htop-3.0.5-r1.ebuild b/sys-process/htop/htop-3.0.5-r1.ebuild index 82648c71eff..ef78ad9c82a 100644 --- a/sys-process/htop/htop-3.0.5-r1.ebuild +++ b/sys-process/htop/htop-3.0.5-r1.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{7..9} ) -inherit autotools linux-info python-any-r1 +inherit autotools linux-info python-any-r1 xdg-utils DESCRIPTION="interactive process viewer" HOMEPAGE="https://htop.dev/ https://github.com/htop-dev/htop" @@ -65,3 +65,13 @@ src_configure() { econf ${myeconfargs[@]} } + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +}