From 699b90e0bf2d26e20b55a9e66d47a9331ae50212 Mon Sep 17 00:00:00 2001 From: Chan Lee Date: Fri, 13 Apr 2018 16:59:42 +0900 Subject: [PATCH] Find package name with hyphen in %asan_incompatible_pkgs find.string fuction can not find string with hyphen because hyphen is regarded as special character. This commit makes find.string function check all strings as plain text. Change-Id: I5464938953cb373135e993134aa238e1974e1ee6 Signed-off-by: Chan Lee --- packaging/macros.asan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/macros.asan b/packaging/macros.asan index 1cc4fa9..27775cf 100644 --- a/packaging/macros.asan +++ b/packaging/macros.asan @@ -10,7 +10,7 @@ %{lua: \ if (nil ~= string.find( \ " " .. rpm.expand("%asan_incompatible_pkgs") .. " ", \ - " " .. rpm.expand("%name") .. " ")) \ + " " .. rpm.expand("%name") .. " ", 1, true)) \ then print(rpm.expand("%gcc_unforce_options")) \ end \ } \ -- 2.7.4