summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-05-14 13:52:08 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2009-05-14 13:52:08 +0000
commitef8091d1fd72b25add3bad1cf6e3c50655a7364a (patch)
tree527ce90635a9294a66dabacc1106254493b226ed
parentAdd description for nautilus-flipping-out patch (diff)
downloadgentoo-2-ef8091d1fd72b25add3bad1cf6e3c50655a7364a.tar.gz
gentoo-2-ef8091d1fd72b25add3bad1cf6e3c50655a7364a.tar.bz2
gentoo-2-ef8091d1fd72b25add3bad1cf6e3c50655a7364a.zip
Allow redefinition of git storage dir. Per jilec request on irc. I cant think of any harm from this, so commiting.
-rw-r--r--eclass/git.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/git.eclass b/eclass/git.eclass
index 91d016000fe1..2128efd2205c 100644
--- a/eclass/git.eclass
+++ b/eclass/git.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.26 2009/05/09 15:10:47 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.27 2009/05/14 13:52:08 scarabeus Exp $
# @ECLASS: git.eclass
# @MAINTAINER:
@@ -41,7 +41,8 @@ DEPEND=">=dev-util/git-1.6"
# @ECLASS-VARIABLE: EGIT_STORE_DIR
# @DESCRIPTION:
# Storage directory for git sources.
-EGIT_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/git-src"
+# Can be redefined.
+[[ -z ${EGIT_STORE_DIR} ]] && EGIT_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/git-src"
# @ECLASS-VARIABLE: EGIT_FETCH_CMD
# @DESCRIPTION: