Message ID | 1347591174-30649-1-git-send-email-kengyu@canonical.com |
---|---|
State | Accepted |
Headers | show |
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>
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>
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"
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(-)