Run filelist checks even if other errors are present.
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 25 May 2007 09:57:10 +0000 (12:57 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 25 May 2007 09:57:10 +0000 (12:57 +0300)
This causes the unpackaged files check to be run even if there are other
errors in the file processing. This is rather handy in spotting spec typos
and such.

Patch from OpenSuSE, somewhat modified.

build/files.c

index 6346389..00633c8 100644 (file)
@@ -2481,8 +2481,9 @@ int processBinaryFiles(Spec spec, int installSpecialDoc, int test)
      * and duplicated files.
      */
     
-    if (res == 0)  {
-       if (checkFiles(check_fileList) > 0)
+    
+    if (checkFiles(check_fileList) > 0) {
+       if (res == 0)
            res = 1;
     }