Find package name with hyphen in %asan_incompatible_pkgs 03/175903/1 accepted/tizen/base/20180420.170845 submit/tizen_base/20180417.072816
authorChan Lee <chan45.lee@samsung.com>
Fri, 13 Apr 2018 07:59:42 +0000 (16:59 +0900)
committerChan Lee <chan45.lee@samsung.com>
Fri, 13 Apr 2018 07:59:42 +0000 (16:59 +0900)
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 <chan45.lee@samsung.com>
packaging/macros.asan

index 1cc4fa9..27775cf 100644 (file)
@@ -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           \
    }              \