commit:     bc41a427792ca39c2986befe964380aa1a951cba
Author:     Julian Ospald <hasufell <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 24 11:57:59 2015 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Oct 24 23:43:19 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc41a427

darcs.eclass: add missing '|| die' on pushd/popd

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 eclass/darcs.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass
index 1fc1b28..abb9ccc 100644
--- a/eclass/darcs.eclass
+++ b/eclass/darcs.eclass
@@ -126,7 +126,7 @@ darcs_fetch() {
 
        # in case EDARCS_DARCS_DIR is a symlink to a dir, get the real
        # dir's path, otherwise addwrite() doesn't work.
-       pushd .
+       pushd . || die
        cd -P "${EDARCS_TOP_DIR}" > /dev/null
        EDARCS_TOP_DIR="`/bin/pwd`"
 
@@ -159,7 +159,7 @@ darcs_fetch() {
        export EDARCS_PATCHCOUNT=$(darcs_patchcount)
        einfo "    patches in repo: ${EDARCS_PATCHCOUNT}"
 
-       popd
+       popd || die
 }
 
 # @FUNCTION: darcs_src_unpack

Reply via email to