From cfdf80bd96c90477c56d5cd3673c8d53d87ffd56 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 1 Jan 2015 21:09:28 +0000 Subject: [PATCH] Fix patch count on first clone (by vikraman). --- eclass/ChangeLog | 7 +++++-- eclass/darcs.eclass | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/eclass/ChangeLog b/eclass/ChangeLog index d4af27fed202..fa331937f74d 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1490 2014/12/30 07:24:52 williamh Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1491 2015/01/01 21:09:28 slyfox Exp $ + + 01 Jan 2015; Sergei Trofimovich darcs.eclass: + Fix patch count on first clone (by vikraman). 30 Dec 2014; William Hubbs eutils.eclass: Allow 512x512 icons to be installed (this was approved by ssuominen). 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} } -- 2.26.2