From 3450404cd3a15c40a6cb75149736427d7b7a17b7 Mon Sep 17 00:00:00 2001 From: konsolebox Date: Thu, 16 May 2024 16:55:18 +0800 Subject: [PATCH] fixup! Exclude reference targets --- rakelib/import-xkcp-files.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rakelib/import-xkcp-files.rake b/rakelib/import-xkcp-files.rake index 041c5ee..0176bc0 100644 --- a/rakelib/import-xkcp-files.rake +++ b/rakelib/import-xkcp-files.rake @@ -68,7 +68,7 @@ private end targets = build_data['group'].find{ |e| (e['@all'] rescue nil) == "XKCP" }['product']['factor'] - .find{ |e| e['@set'] =~ /reference/ }['@set'].split(' ').reject(&/reference/.method(:match?)) + .find{ |e| e['@set'] =~ /reference/ }['@set'].split(' ').reject{ |t| t =~ /reference/ } raise "Targets have similar names." unless targets.size == targets.map(&:downcase).uniq.size