From 4aa6024198c75709b8c61a93d050b97c04710cc3 Mon Sep 17 00:00:00 2001 From: 1is7ac3 Date: Thu, 12 Dec 2024 02:06:13 -0300 Subject: [PATCH] xlint: add check don't use $pkgname in $depends --- xlint | 1 + 1 file changed, 1 insertion(+) diff --git a/xlint b/xlint index 5e6f1f4..160ecd7 100755 --- a/xlint +++ b/xlint @@ -490,6 +490,7 @@ for argument; do scan "cargo update (--package|-p) [A-Za-z_][A-Za-z0-9_]*(?!\:[0-9]+\.[0-9]+\.[0-9]+)(\s.+)?$" '"cargo update" commands should include the specific version we are updating from in the --package SPEC' scan "cargo update (--package|-p) [A-Za-z_][A-Za-z0-9_-]*\:[0-9]+\.[0-9]+\.[0-9]+(?!--precise [0-9]+\.[0-9]+\.[0-9]+)$" '"cargo update" commands should include the specific version we are updating to, using --precise' scan '-D([[:alnum:]_-]+)=\$\(vopt_if \1 true false\)' 'use $(vopt_bool ...) instead of -D...=$(vopt_if ...)' + scan 'depends=.*{pkgname}' 'use ${sourcepkg} in depends for subpackages' variables_order | grep -Pv "($old_variables)=" header file_end