summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2015-01-01 21:09:28 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2015-01-01 21:09:28 +0000
commitcfdf80bd96c90477c56d5cd3673c8d53d87ffd56 (patch)
treea5fd13be7e38f5233a97df961f9b358d4f779fdd /eclass/darcs.eclass
parentarm stable, bug #529964 (diff)
downloadhistorical-cfdf80bd96c90477c56d5cd3673c8d53d87ffd56.tar.gz
historical-cfdf80bd96c90477c56d5cd3673c8d53d87ffd56.tar.bz2
historical-cfdf80bd96c90477c56d5cd3673c8d53d87ffd56.zip
Fix patch count on first clone (by vikraman).
Diffstat (limited to 'eclass/darcs.eclass')
-rw-r--r--eclass/darcs.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass
index af382a60c281..c6ff705f6e56 100644
--- a/eclass/darcs.eclass
+++ b/eclass/darcs.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.17 2014/05/22 16:30:59 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.18 2015/01/01 21:09:28 slyfox Exp $
# @ECLASS: darcs.eclass
# @MAINTAINER:
@@ -88,7 +88,7 @@ DEPEND="dev-vcs/darcs
# @DESCRIPTION:
# Internal function to determine amount of patches in repository.
darcs_patchcount() {
- set -- $(HOME="${EDARCS_TOP_DIR}" ${EDARCS_DARCS_CMD} show repo | grep "Num Patches")
+ set -- $(HOME="${EDARCS_TOP_DIR}" ${EDARCS_DARCS_CMD} show repo --repodir="${EDARCS_TOP_DIR}/${EDARCS_LOCALREPO}" | grep "Num Patches")
# handle string like: " Num Patches: 3860"
echo ${3}
}