mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
x11-libs/gtk+: use double brackets for glob existence check
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
9343675526
commit
b50c0bf9a2
@@ -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]*)"
|
||||
|
||||
Reference in New Issue
Block a user