瀏覽代碼

HPCC-10595 Don't display ecl-packagemap-validate success on warnings

Other warnings prevent the output of "validation successful" but warnings
about files that are unmapped or not in dfs currently don't prevent that
message.  Make all warnings behave consistently in this regard.

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Anthony Fishbeck 11 年之前
父節點
當前提交
d702ff6c10
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      ecl/ecl-package/ecl-package.cpp

+ 2 - 0
ecl/ecl-package/ecl-package.cpp

@@ -779,6 +779,7 @@ public:
         StringArray &unusedFiles = resp->getFiles().getUnmatched();
         if (unusedFiles.ordinality()>0)
         {
+            validateMessages = true;
             fputs("\n   Files without matching package definitions:\n", stderr);
             ForEachItemIn(i, unusedFiles)
                 fprintf(stderr, "      %s\n", unusedFiles.item(i));
@@ -787,6 +788,7 @@ public:
         StringArray &notInDFS = resp->getFiles().getNotInDFS();
         if (notInDFS.ordinality()>0)
         {
+            validateMessages = true;
             fputs("\n   Packagemap SubFiles not found in DFS:\n", stderr);
             ForEachItemIn(i, notInDFS)
                 fprintf(stderr, "      %s\n", notInDFS.item(i));