From patchwork Fri Sep 14 02:52:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keng-Yu Lin X-Patchwork-Id: 183793 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 65E2B2C0088 for ; Fri, 14 Sep 2012 12:53:03 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TCLzw-0002Nm-6X; Fri, 14 Sep 2012 02:51:16 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TCLzu-0002Nc-BR for fwts-devel@lists.ubuntu.com; Fri, 14 Sep 2012 02:51:14 +0000 Received: from [175.41.48.77] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1TCM1b-0008RH-IX; Fri, 14 Sep 2012 02:53:00 +0000 From: Keng-Yu Lin To: fwts-devel@lists.ubuntu.com Subject: [PATCH] auto-packager: mkpackage.sh: checksum only the specified version Date: Fri, 14 Sep 2012 10:52:54 +0800 Message-Id: <1347591174-30649-1-git-send-email-kengyu@canonical.com> X-Mailer: git-send-email 1.7.9.5 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com This patch makes only check the checksum of the specified version. Also added the official release URL. Signed-off-by: Keng-Yu Lin Acked-by: Chris Van Hoof Acked-by: Alex Hung --- auto-packager/mkpackage.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auto-packager/mkpackage.sh b/auto-packager/mkpackage.sh index cd5e0ff..8ad9ae9 100755 --- a/auto-packager/mkpackage.sh +++ b/auto-packager/mkpackage.sh @@ -25,7 +25,7 @@ # RELEASES="lucid natty oneiric precise quantal" REPO=git://kernel.ubuntu.com/hwe/fwts.git -RELEASE_TAR_URL=http://kernel.ubuntu.com/~lexical/fwts +RELEASE_TAR_URL=http://fwts.ubuntu.com/release FWTS=fwts # @@ -84,7 +84,8 @@ prepare_tarball() pushd $version >& /dev/null wget -N $RELEASE_TAR_URL/fwts-$version.tar.gz wget -N $RELEASE_TAR_URL/SHA256SUMS - sha256sum -c SHA256SUMS + grep "fwts-$version.tar.gz" SHA256SUMS > SHA256SUMS.local + sha256sum -c SHA256SUMS.local if [ $? -ne 0 ]; then echo "Checksum unmatched. Abort"