summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-06-16 18:15:19 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-06-16 18:15:19 +0200
commit002c0fd2cbe01eac12c80d47b852cfa88102d36d (patch)
treebff8fff08844761610074053094ca54587712f21
parent713f20c3f530c5daf9d930285fffee990ac868db (diff)
downloadxtools-002c0fd2cbe01eac12c80d47b852cfa88102d36d.tar.gz
xtools-002c0fd2cbe01eac12c80d47b852cfa88102d36d.tar.xz
xtools-002c0fd2cbe01eac12c80d47b852cfa88102d36d.zip
xlint: fix false positive detecting pycompile_version= as version=.
-rwxr-xr-xxlint2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlint b/xlint
index 68979ef..6b7a37a 100755
--- a/xlint
+++ b/xlint
@@ -131,7 +131,7 @@ for template; do
 	if ! grep -q vlicense "$template"; then
 		scan 'license=.*custom' "license 'custom', but no use of vlicense"
 	fi
-	if ! sed -n '/version=/{n;/revision=/b;q1}' "$template"; then
+	if ! sed -n '/^version=/{n;/revision=/b;q1}' "$template"; then
 		scan 'revision=' "revision does not appear immediately after version"
 	fi
 	scan 'vinstall.* usr/bin' "use vbin"