summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-11 00:16:28 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-11 00:16:28 +0000
commitcf38c3b09bd396b89db245600753f1a1ef04b062 (patch)
treecaeeb33134d4ec070cf0efec318076cffdd83a4a /eclass/cvs.eclass
parentbreak options out of command so people can set their own custom options/compress (diff)
downloadgentoo-2-cf38c3b09bd396b89db245600753f1a1ef04b062.tar.gz
gentoo-2-cf38c3b09bd396b89db245600753f1a1ef04b062.tar.bz2
gentoo-2-cf38c3b09bd396b89db245600753f1a1ef04b062.zip
sanitize $PN into bash form #131552 by Martin Väth
Diffstat (limited to 'eclass/cvs.eclass')
-rw-r--r--eclass/cvs.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index 8b8eb1b34c59..8051776033f5 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.67 2006/12/11 00:11:46 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.68 2006/12/11 00:16:28 vapier Exp $
#
# Maintainer: vapier@gentoo.org (and anyone who wants to help)
@@ -488,7 +488,8 @@ cvs_src_unpack() {
ECVS_LOCALNAME="$ECVS_MODULE"
fi
- local offline_pkg_var="ECVS_OFFLINE_${PN}"
+ local sanitized_pn=$(echo "${PN}" | LC_ALL=C sed -e 's:[^A-Za-z0-9_]:_:g')
+ local offline_pkg_var="ECVS_OFFLINE_${sanitized_pn}"
if [ "${!offline_pkg_var}" == "1" -o "$ECVS_OFFLINE" == "1" -o "$ECVS_SERVER" == "offline" ]; then
# We're not required to fetch anything; the module already
# exists and shouldn't be updated.