darcs.eclass: add missing '|| die' on pushd/popd
authorJulian Ospald <hasufell@gentoo.org>
Sat, 24 Oct 2015 11:57:59 +0000 (13:57 +0200)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 24 Oct 2015 23:43:19 +0000 (00:43 +0100)
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/darcs.eclass

index 1fc1b28b0521bab0ba6f0a1225d602836f0aee8b..abb9ccc9b092c9756b49f20bd12d6f72cde8eedf 100644 (file)
@@ -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