summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-02-10 01:37:59 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-02-10 01:37:59 +0000
commit70816babfade2120331d391862b105252a2c2cc6 (patch)
treee526c46dabe7a2d8213e2cb73da31ba59166731d /x11-base
parentHard enabling SIMD assembler for AMD64, closes bug 80638. (diff)
downloadgentoo-2-70816babfade2120331d391862b105252a2c2cc6.tar.gz
gentoo-2-70816babfade2120331d391862b105252a2c2cc6.tar.bz2
gentoo-2-70816babfade2120331d391862b105252a2c2cc6.zip
Check user only when changing implementation. Fix libglx bug #79552.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'x11-base')
-rw-r--r--x11-base/opengl-update/files/opengl-update-2.1.16
1 files changed, 3 insertions, 3 deletions
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 <azarah@gentoo.org>
# Further modifications by Donnie Berkholz <spyderous@gentoo.org>
# Further modifications based off submissions to bug #54984 <cyfred@gentoo.org>
@@ -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