From 70816babfade2120331d391862b105252a2c2cc6 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Thu, 10 Feb 2005 01:37:59 +0000 Subject: Check user only when changing implementation. Fix libglx bug #79552. (Portage version: 2.0.51-r15) --- x11-base/opengl-update/files/opengl-update-2.1.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'x11-base') diff --git a/x11-base/opengl-update/files/opengl-update-2.1.1 b/x11-base/opengl-update/files/opengl-update-2.1.1 index 4696dac13beb..129aa6b9168b 100644 --- a/x11-base/opengl-update/files/opengl-update-2.1.1 +++ b/x11-base/opengl-update/files/opengl-update-2.1.1 @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-base/opengl-update/files/opengl-update-2.1.1,v 1.1 2005/02/10 00:03:27 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-base/opengl-update/files/opengl-update-2.1.1,v 1.2 2005/02/10 01:37:59 eradicator Exp $ # Author: Martin Schlemmer # Further modifications by Donnie Berkholz # Further modifications based off submissions to bug #54984 @@ -161,6 +161,7 @@ set-new-implementation() { local GL_LOCAL check_version + check_user if ! hasq ${GL_IMPLEM} ${AVAIL_IMPLEMS}; then eerror "Invalid profile selected." @@ -250,7 +251,7 @@ set-new-implementation() { [[ -h ${file} ]] && rm -f ${file} done - for file in ${PREFIX}/opengl/${GL_LOCAL}/extensions/*.{so,a,la}; do + for file in ${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/extensions/*.{so,a,la}; do [[ -f "${file}" ]] || continue [[ -f "${file##*/}" ]] && rm -f ${file##*/} @@ -307,7 +308,6 @@ DST_PREFIX="/usr" AVAIL_IMPLEMS=$(get_implementations) CURRENT_GL_IMPLEM=$(get_current_implem) -check_user parse_options ${@} case ${ACTION} in -- cgit v1.2.3-65-gdbad