check-package: check *.hash files
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sun, 19 Feb 2017 22:17:19 +0000 (19:17 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 8 Apr 2017 14:15:33 +0000 (16:15 +0200)
commit6c931bbf5f168ed7c5c10060d0665b16e0b60e7d
tree40a8ef67010adda7f49b29cffdcd24233763ba94
parentc6bf3239cb1650c3fb7451d6a2026c64db2a15bc
check-package: check *.hash files

Check each hash entry (see [1]) and warn when:
- it does not have three fields;
- its type is unknown;
- its length does not match its type;
- the name of the file contains a directory component.

[1] http://nightly.buildroot.org/#adding-packages-hash

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/checkpackagelib_hash.py