X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 78208DC6271 for ; Fri, 5 Jul 2013 04:21:55 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 345A120188 for ; Fri, 5 Jul 2013 00:21:49 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 05 Jul 2013 00:21:49 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :in-reply-to:references; s=smtpout; bh=2GripKugO2Tp/5+3Y4vP+IJFC bI=; b=KxwC62GEwWnAOQ53p7j37an28Zbl8bu7iRaLlfWREtvifW8OAOyRgl/6N 67Eq/w9mWnVWkIsawBToCcSup7g2XdOFnKJbsV3EmvZxL9yoTuIHRdnNh5kB7ByI hBNDspw+4uY+Ukq8yhwttkkAyE6rlR+LXmpF3FKL9Dq1RYg4wI= X-Sasl-enc: 2emJAoULcSxFjtfRI9Y0YSEAi3TnYIuwTKcosqlXP5F6 1372998109 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id F1D1A680450 for ; Fri, 5 Jul 2013 00:21:48 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 17/31] abump: introduce subshell, rc Date: Fri, 5 Jul 2013 00:21:26 -0400 Message-Id: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- abump.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/abump.in b/abump.in index 72afdbc..1d4e1e4 100755 --- a/abump.in +++ b/abump.in @@ -18,14 +18,15 @@ fi # version bump packages do_bump() { - local p pkgname pkgver section upgrade cve message + local p rc=0 pkgname pkgver section upgrade cve message for p; do pkgname=${p%-[0-9]*} pkgver=${p#${pkgname}-} + ( set -e - cd $HOME/aports/*/$pkgname || exit 1 + cd $HOME/aports/*/$pkgname section=${PWD%/*} upgrade="upgrade" cve= section=${section##*/} if [ -n "$cvelist" ]; then @@ -48,11 +49,13 @@ fixes #${fixes#\#} -e "s/^pkgrel=.*/pkgrel=0/" \ APKBUILD - abuild $abuild_opts checksum all || exit 1 + abuild $abuild_opts checksum all git add APKBUILD git commit -m"$message" + ) || rc=1 done + return $rc } usage() { -- 1.8.3.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---