[PATCH] auto-packager: mkpackage.sh: checksum only the specified version
Alex Hung
alex.hung at canonical.com
Fri Sep 14 03:09:05 UTC 2012
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 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"
>
Acked-by: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list