commit:     5f4158a1df764db57f954a155851e67f603bfd86
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  7 13:11:08 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Nov  7 13:17:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f4158a1

app-containers/distrobox: do not use custom xdg function

Bug: https://bugs.gentoo.org/957724
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-containers/distrobox/distrobox-1.8.1.2-r1.ebuild | 17 ++++++++---------
 app-containers/distrobox/distrobox-1.8.2.1.ebuild    | 17 ++++++++---------
 2 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/app-containers/distrobox/distrobox-1.8.1.2-r1.ebuild 
b/app-containers/distrobox/distrobox-1.8.1.2-r1.ebuild
index 512e088e7170..36c1de6c5db8 100644
--- a/app-containers/distrobox/distrobox-1.8.1.2-r1.ebuild
+++ b/app-containers/distrobox/distrobox-1.8.1.2-r1.ebuild
@@ -31,13 +31,6 @@ RDEPEND="
        )
 "
 
-_gui_cache_update() {
-       if use gui ; then
-               xdg_icon_cache_update
-               xdg_desktop_database_update
-       fi
-}
-
 src_install() {
        sh ./install --prefix "${ED}/usr" || die "${PN} install script failed"
 
@@ -51,9 +44,15 @@ src_install() {
 }
 
 pkg_postinst() {
-       _gui_cache_update
+       if use gui ; then
+               xdg_icon_cache_update
+               xdg_desktop_database_update
+       fi
 }
 
 pkg_postrm() {
-       _gui_cache_update
+       if use gui ; then
+               xdg_icon_cache_update
+               xdg_desktop_database_update
+       fi
 }

diff --git a/app-containers/distrobox/distrobox-1.8.2.1.ebuild 
b/app-containers/distrobox/distrobox-1.8.2.1.ebuild
index f9ed801ebce4..85813e3c6f3f 100644
--- a/app-containers/distrobox/distrobox-1.8.2.1.ebuild
+++ b/app-containers/distrobox/distrobox-1.8.2.1.ebuild
@@ -31,13 +31,6 @@ RDEPEND="
        )
 "
 
-_gui_cache_update() {
-       if use gui ; then
-               xdg_icon_cache_update
-               xdg_desktop_database_update
-       fi
-}
-
 src_install() {
        sh ./install --prefix "${ED}/usr" || die "${PN} install script failed"
 
@@ -51,9 +44,15 @@ src_install() {
 }
 
 pkg_postinst() {
-       _gui_cache_update
+       if use gui ; then
+               xdg_icon_cache_update
+               xdg_desktop_database_update
+       fi
 }
 
 pkg_postrm() {
-       _gui_cache_update
+       if use gui ; then
+               xdg_icon_cache_update
+               xdg_desktop_database_update
+       fi
 }

Reply via email to