pkg-generic: fix no-check-hash for inferred site method
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Fri, 29 Jun 2018 01:42:46 +0000 (22:42 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 14 Jul 2018 21:25:03 +0000 (23:25 +0200)
commitb115ecd122d6a9738d89b5e6efc5f7f6df7872e9
treedff1ab426e685056095b2ed29375f60701607bdc
parentf99659d314d535f35e21f2d1003b8c813a7adfc0
pkg-generic: fix no-check-hash for inferred site method

Currently, when the site method is explicitly set to a SCM other than
git, the main download is correctly excluded from being hash-checked.
But when the site method is inferred from the site uri, the download
from a SCM other than git is wrongly being hash-checked.

Fix this by moving the code that excludes SCM methods from hash-check
below the code that infers the site method.

Currently there is no package in the tree that uses inferred site
method, and that is why the autobuilder didn't caught this. We had
packages using inferred site method in the past, the last one was
'expect', but since they didn't have a hash file (for a license or
extra-download for example) the build didn't error out.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
Tested-by: Luca Ceresoli <luca@lucaceresoli.net>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/pkg-generic.mk