Find package name with hyphen in %asan_incompatible_pkgs
[platform/upstream/gcc-contrib.git] / 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           \
    }              \