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 96D52DC740F 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 A13442070B for ; Fri, 5 Jul 2013 00:21:51 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.internal (MEProxy); Fri, 05 Jul 2013 00:21:51 -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=QO18HpgfgK1VzBH/bINdI0JnG 4w=; b=lsgJnq8uWO81Sg11NICwleMIREE1OjnpSZqvr09P26o1XACnJDvMceqeD tF2z4FxH02B4yPdci8KoAhIyJRofUgIo8LPlhki1H6HK/uuqeIabImTgZdENncfl sjfEspUOo6kcspAkooUXD3X4IxQB/9I0WoD88Qo9gjG2KhYMzo= X-Sasl-enc: J6/RWZxSLUjdXM/Zd6R7KvwUcrzGMjXVqLHjcQKJ96mV 1372998111 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A031680204 for ; Fri, 5 Jul 2013 00:21:51 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 22/31] abump: verify APKBUILD's version Date: Fri, 5 Jul 2013 00:21:31 -0400 Message-Id: <048467371fac05a1f70c2d16af95432a6046e335.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: --- abump.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/abump.in b/abump.in index f25a4ea..81b2705 100755 --- a/abump.in +++ b/abump.in @@ -37,6 +37,12 @@ do_bump() { . "$a" || exit 1 [ "$pkgname" = "$name" ] || die "$name: APKBUILD has different \$pkgname" type package | grep -q function || die "$name: missing package()" + case $(apk version --test "$pkgver" "$ver") in + '=') die "$pkgname: already at version $pkgver";; + '>') die "$pkgname: already at newer version $pkgver";; + '<') exit 0;; + *) exit 1;; + esac ) || { rc=1; continue; } ( -- 1.8.3.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---