summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-12-15 17:12:51 +0100
committerJustin Lecher <jlec@gentoo.org>2015-12-16 09:49:12 +0100
commit724530ca465628f494ba6b44a6caf6615557bc9e (patch)
tree349c9420885d5bd88c3cd88c2aea91c8dadea2b6 /dev-python/pycuda
parentmedia-libs/gd: x86 stable wrt bug #538686 (diff)
downloadgentoo-724530ca465628f494ba6b44a6caf6615557bc9e.tar.gz
gentoo-724530ca465628f494ba6b44a6caf6615557bc9e.tar.bz2
gentoo-724530ca465628f494ba6b44a6caf6615557bc9e.zip
dev-python/pycuda: Check BUILD_DIR existance before creation
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=568290 Package-Manager: portage-2.2.26 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/pycuda')
-rw-r--r--dev-python/pycuda/pycuda-2014.1.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev-python/pycuda/pycuda-2014.1.ebuild b/dev-python/pycuda/pycuda-2014.1.ebuild
index bfb7af9d68c4..5498282bdf1d 100644
--- a/dev-python/pycuda/pycuda-2014.1.ebuild
+++ b/dev-python/pycuda/pycuda-2014.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -52,7 +52,7 @@ python_configure() {
local myopts=()
use opengl && myopts+=( --cuda-enable-gl )
- mkdir "${BUILD_DIR}" || die
+ [[ -d "${BUILD_DIR}" ]] || mkdir "${BUILD_DIR}" || die
cd "${BUILD_DIR}" || die
[[ -e ./siteconf.py ]] && rm -f ./siteconf.py
"${EPYTHON}" "${S}"/configure.py \