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 1CE92DC7BE5 for ; Fri, 5 Jul 2013 04:21:55 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id DF6A020913 for ; Fri, 5 Jul 2013 00:21:53 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.internal (MEProxy); Fri, 05 Jul 2013 00:21:53 -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=9rQWgpJBwyVAbF4czm+TqwgJT Ug=; b=nuVqvciLDkVCjHEWsEs9CZetd66KV/JS3h/yjHiaEA6B//jRJiu5RjT5O up0LXEbIsQkxImZ1XmRmVyurq2Kh4o5gh7Mrq3n13y2GnF7dQEn18o6CjEyykwpZ jSiXb4AsehuTHeBuT1eacmtopuZS8mVuNx070BoDeKvW5lfpMo= X-Sasl-enc: LRKkMW1Qamavw7RXpTa7Z94/9kdNjyPCMt5yLDBbjcSb 1372998113 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id B09CF680204 for ; Fri, 5 Jul 2013 00:21:53 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 27/31] apkgrel: handle missing pkgrel in do_add Date: Fri, 5 Jul 2013 00:21:36 -0400 Message-Id: <39c3d332a52baca78939f2ff59c4bcb72830ddbd.1372997335.git.dubiousjim@gmail.com> 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: --- apkgrel.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apkgrel.in b/apkgrel.in index 83c89fd..7e33e34 100644 --- a/apkgrel.in +++ b/apkgrel.in @@ -49,7 +49,10 @@ do_add () { && continue [ -d "$f" ] && f="$f/APKBUILD" old=$(show_plain "$f") - setto=$(($old + 1)) + case $old in + [0-9]*) setto=$((old + 1));; + *) setto=0;; + esac do_set "$f" || return 1 done } -- 1.8.3.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---