summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Armak <danarmak@gentoo.org>2002-10-20 11:14:50 +0000
committerDan Armak <danarmak@gentoo.org>2002-10-20 11:14:50 +0000
commit725a7d37d4fe5e6eeb3b0c9611d429600657655a (patch)
tree4fcf7db3fa6440e2cb1f1ba1a228362781e171ee /eclass/kde-source.eclass
parentremove radeon patches, bug #8144 (diff)
downloadgentoo-2-725a7d37d4fe5e6eeb3b0c9611d429600657655a.tar.gz
gentoo-2-725a7d37d4fe5e6eeb3b0c9611d429600657655a.tar.bz2
gentoo-2-725a7d37d4fe5e6eeb3b0c9611d429600657655a.zip
fix: when in offline mode, do not call cvs_src_unpack for nonexistant doc/subdir dirs
Diffstat (limited to 'eclass/kde-source.eclass')
-rw-r--r--eclass/kde-source.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/kde-source.eclass b/eclass/kde-source.eclass
index 8b52d1834379..c02d33b0c622 100644
--- a/eclass/kde-source.eclass
+++ b/eclass/kde-source.eclass
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde-source.eclass,v 1.9 2002/09/08 16:17:15 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde-source.eclass,v 1.10 2002/10/20 11:14:50 danarmak Exp $
# This is for kde-base cvs ebuilds. Read comments about settings.
# It uses $S and sets $SRC_URI, so inherit it as late as possible (certainly after any other eclasses).
@@ -72,9 +72,15 @@ kde-source_src_unpack() {
ECVS_SUBDIR= ECVS_LOCAL=yes cvs_src_unpack
- # we need the module/doc/name directory too
- ECVS_SUBDIR=doc/$ECVS_SUBDIR cvs_src_unpack
+ # we need the module//doc/name directory too, and the top-level doc/ directory
ECVS_SUBDIR=doc ECVS_LOCAL=yes cvs_src_unpack
+ # but, if such a directory doesn't exist on the cvs server and we're
+ # in offline mode cvs.eclass will abort, so only call this if we're
+ # in online mode or the dir is already fetched
+ if [ -d "$ECVS_TOP_DIR/$ECVS_MODULE/doc/$ECVS_SUBDIR" -o "$ECVS_SERVER" != "offline" ]; then
+ debug-print "$FUNCNAME: fetching doc/$ECVS_SUBDIR..."
+ ECVS_SUBDIR=doc/$ECVS_SUBDIR cvs_src_unpack
+ fi
fi