From b50c0bf9a202e9ea569c2423d72a3b50a34b5c5d Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Wed, 30 Aug 2023 08:51:48 +0300 Subject: [PATCH] x11-libs/gtk+: use double brackets for glob existence check Signed-off-by: Arthur Zamarin Signed-off-by: Sam James --- x11-libs/gtk+/gtk+-2.24.33-r3.ebuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/x11-libs/gtk+/gtk+-2.24.33-r3.ebuild b/x11-libs/gtk+/gtk+-2.24.33-r3.ebuild index b28a310466f8c..be2fa7edc8528 100644 --- a/x11-libs/gtk+/gtk+-2.24.33-r3.ebuild +++ b/x11-libs/gtk+/gtk+-2.24.33-r3.ebuild @@ -256,13 +256,13 @@ pkg_postinst() { set_gtk2_confdir - if [ -e "${EROOT}/etc/gtk-2.0/gtk.immodules" ]; then + if [[ -e "${EROOT}/etc/gtk-2.0/gtk.immodules" ]]; then elog "File /etc/gtk-2.0/gtk.immodules has been moved to \$CHOST" elog "aware location. Removing deprecated file." rm -f "${EROOT}/etc/gtk-2.0/gtk.immodules" fi - if [ -e "${EROOT}${GTK2_CONFDIR}/gtk.immodules" ]; then + if [[ -e "${EROOT}${GTK2_CONFDIR}/gtk.immodules" ]]; then elog "File /etc/gtk-2.0/gtk.immodules has been moved to" elog "${EROOT}/usr/$(get_libdir)/gtk-2.0/2.10.0/immodules.cache" elog "Removing deprecated file." @@ -270,20 +270,20 @@ pkg_postinst() { fi # pixbufs are now handled by x11-libs/gdk-pixbuf - if [ -e "${EROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders" ]; then + if [[ -e "${EROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders" ]]; then elog "File ${EROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf" elog "Removing deprecated file." rm -f "${EROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders" fi # two checks needed since we dropped multilib conditional - if [ -e "${EROOT}/etc/gtk-2.0/gdk-pixbuf.loaders" ]; then + if [[ -e "${EROOT}/etc/gtk-2.0/gdk-pixbuf.loaders" ]]; then elog "File ${EROOT}/etc/gtk-2.0/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf" elog "Removing deprecated file." rm -f "${EROOT}/etc/gtk-2.0/gdk-pixbuf.loaders" fi - if [ -e "${EROOT}"/usr/lib/gtk-2.0/2.[^1]* ]; then + if [[ -e "${EROOT}"/usr/lib/gtk-2.0/2.[^1]* ]]; then elog "You need to rebuild ebuilds that installed into" "${EROOT}"/usr/lib/gtk-2.0/2.[^1]* elog "to do that you can use qfile from portage-utils:" elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.[^1]*)"