diff --git a/autoconf_share/scanBuildLog b/autoconf_share/scanBuildLog
index a145f772d7eba11efb096414873c872392c62ab1..c9ea505e6bd37854e680a729a822bd2b41b0fb8c 100755
--- a/autoconf_share/scanBuildLog
+++ b/autoconf_share/scanBuildLog
@@ -604,11 +604,11 @@ def main(argv):
   #
   # findthe PACKAGE(S) line to get all Packages being build
   #
-  packagePattern = re.compile('(PACKAGES *= *".*?")|(PACKAGES *= *[^ ]*)',re.IGNORECASE)
+  packagePattern = re.compile('(PACKAGES *= *.*$)',re.IGNORECASE)
   #
   # find the VARIANT(S) line to get the Variant being build
   #
-  variantPattern = re.compile('(VARIANTS *= *".*?")|(VARIANTS *= *[^ ]*)',re.IGNORECASE)
+  variantPattern = re.compile('(VARIANTS *= *.*$)',re.IGNORECASE)
   #
   # find the Compiletool line for compiling
   #