Patchwork auto-packager: mkpackage.sh: checksum only the specified version

login
register
mail settings
Submitter Keng-Yu Lin
Date Sept. 14, 2012, 2:52 a.m.
Message ID <1347591174-30649-1-git-send-email-kengyu@canonical.com>
Download mbox | patch
Permalink /patch/183793/
State Accepted
Headers show

Comments

Keng-Yu Lin - Sept. 14, 2012, 2:52 a.m.
This patch makes only check the checksum of the specified version.
Also added the official release URL.

Signed-off-by: Keng-Yu Lin <kengyu@canonical.com>
---
 auto-packager/mkpackage.sh |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Chris Van Hoof - Sept. 14, 2012, 3:08 a.m.
On 09/13/2012 10:52 PM, Keng-Yu Lin wrote:
> This patch makes only check the checksum of the specified version.
> Also added the official release URL.
> 
> Signed-off-by: Keng-Yu Lin <kengyu@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"

Acked-by: Chris Van Hoof <vanhoof@canonical.com>
Alex Hung - Sept. 14, 2012, 3:09 a.m.
On 09/14/2012 10:52 AM, Keng-Yu Lin wrote:
> This patch makes only check the checksum of the specified version.
> Also added the official release URL.
>
> Signed-off-by: Keng-Yu Lin <kengyu@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"
>
Acked-by: Alex Hung <alex.hung@canonical.com>

Patch

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"