[PATCH] auto-packager: mkpackage.sh: checksum only the specified version

Keng-Yu Lin kengyu at canonical.com
Fri Sep 14 02:52:54 UTC 2012


This patch makes only check the checksum of the specified version.
Also added the official release URL.

Signed-off-by: Keng-Yu Lin <kengyu at canonical.com>
---
 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"
-- 
1.7.9.5




More information about the fwts-devel mailing list