Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-pms] [PATCH] Note that eend() should return the passed exit status.
Date: Wed, 10 Aug 2011 09:59:30
Message-Id: 1312970410-15103-1-git-send-email-mgorny@gentoo.org
In Reply to: Re: [gentoo-pms] [PATCH] Note that eend() should return the passed exit status. by Ulrich Mueller
This is quite useful, and paludis, pkgcore & portage all do that.
---
 pkg-mgr-commands.tex |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
index 10566fa..bf555ef 100644
--- a/pkg-mgr-commands.tex
+++ b/pkg-mgr-commands.tex
@@ -104,7 +104,7 @@ stderr or some other appropriate facility.
 \item[eend] Indicates that the process begun with an \t{ebegin} message has completed. Takes one
     fixed argument, which is a numeric return code, and an optional message in all subsequent
     arguments.  If the first argument is 0, print a success indicator; otherwise, print the message
-    followed by a failure indicator.
+    followed by a failure indicator.  Returns its first argument as exit status.
 \end{description}
 
 \subsubsection{Error commands}
-- 
1.7.6