diff options
author | B. Watson <urchlay@slackware.uk> | 2023-02-13 17:13:37 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2023-02-13 17:13:37 -0500 |
commit | dedd4e4bdd5285d7270b7cad89aff3c9090f55ac (patch) | |
tree | f7bb90b75f135e8418060cecc67c1a543a17d1c0 /sbolint | |
parent | 3ac66a0826f6808f2c7a561515b58ec3e43520e6 (diff) | |
download | sbo-maintainer-tools-dedd4e4bdd5285d7270b7cad89aff3c9090f55ac.tar.gz |
sbolint: new PKGTYPE checks.
Diffstat (limited to 'sbolint')
-rwxr-xr-x | sbolint | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1211,6 +1211,9 @@ sub check_script { } elsif($cdpkg && /^[^#]*mkdir[^#]*install/) { $install = $lineno; } elsif(/^[^#]*makepkg/) { + if(/\$\{PKGTYPE:-/) { + log_error("$file:$lineno: makepkg PKGTYPE doesn't match 15.0 template"); + } if($makepkg) { log_error("$file:$lineno: makepkg called twice (here and line $makepkg"); } @@ -1241,6 +1244,9 @@ sub check_script { # 20230204 bkw: more 15.0 template if(/^PKGTYPE=/) { $pkg_type = $lineno; + if(not /:-tgz/) { + log_error("$file:$lineno: PKGTYPE doesn't default to tgz"); + } } if((not defined $arch_lineno) && (/\bARCH=/)) { |