commit:     2ea68e88531288c29c5533440d63da6c8136d477
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  7 18:03:38 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Mar  7 18:03:38 2018 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=2ea68e88

scripts/rsync-generation/hashgen: count missing and stray files as failed

 scripts/rsync-generation/hashgen.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/rsync-generation/hashgen.c 
b/scripts/rsync-generation/hashgen.c
index 7bedc75ca4..c4955f65c7 100644
--- a/scripts/rsync-generation/hashgen.c
+++ b/scripts/rsync-generation/hashgen.c
@@ -1228,6 +1228,7 @@ verify_dir(
                                                        mfest, entry, etpe == 
'M' ? "MANIFEST" : "DATA");
                                        if (slash != NULL)
                                                *slash = ' ';
+                                       failed_files++;
                                }
                                curelem++;
                        } else if (cmp > 0) {
@@ -1236,6 +1237,7 @@ verify_dir(
                                printf("%s:\n- found excess file: %s\n",
                                                mfest, dentries[curdentry]);
                                curdentry++;
+                               failed_files++;
                        }
                }
 

Reply via email to