summary refs log tree commit diff
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2020-01-30 19:05:33 +0700
committerLeah Neukirchen <leah@vuxu.org>2020-01-30 13:51:56 +0100
commit124b3b3ae9e42582abcd85ab30fb1a3c3f894632 (patch)
tree04b34c66f9aee4a56cfb1a67640dab4d2514a3ff
parent7ffc3a22a31805eab7a36ddb960d3e430d4c63f0 (diff)
downloadxtools-124b3b3ae9e42582abcd85ab30fb1a3c3f894632.tar.gz
xtools-124b3b3ae9e42582abcd85ab30fb1a3c3f894632.tar.xz
xtools-124b3b3ae9e42582abcd85ab30fb1a3c3f894632.zip
xlint: allow pycompile_module when pycompile_dirs is set
Some packages likes Carla shippes python script in custom location,
xbps-src hasn't been taught to detect it.

Allow pycompile_module for those packages.

Closes: #166 [via git-merge-pr]
-rwxr-xr-xxlint1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlint b/xlint
index 16bea0f..0de1b2e 100755
--- a/xlint
+++ b/xlint
@@ -320,6 +320,7 @@ for template; do
 	scan 'distfiles=.*download.kde.org/stable' 'use $KDE_SITE'
 	scan 'distfiles=.*xorg\.freedesktop\.org/wiki/' 'use $XORG_HOME'
 	scan 'usr/lib/python3.[0-9]/site-packages' 'use $py3_sitelib'
+	grep -q "^pycompile_dirs=" "$template" ||
 	scan 'pycompile_module=' 'do not set pycompile_module, it is autodetected'
 	scan '^wrksrc=(\$\{[^}]+\}|[^${}/])*/.+' 'wrksrc should be a top-level directory'
 	scan '^\t*function\b' 'do not use the function keyword'