summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-03-07 19:03:38 +0100
committerFabian Groffen <grobian@gentoo.org>2018-03-07 19:03:38 +0100
commit2ea68e88531288c29c5533440d63da6c8136d477 (patch)
treef55f2ce4762c18c834355a0358e7374f4db36df4 /scripts
parentscripts/rsync-generation/hashgen: rewrite hashgen to be simpler (diff)
downloadprefix-2ea68e88531288c29c5533440d63da6c8136d477.tar.gz
prefix-2ea68e88531288c29c5533440d63da6c8136d477.tar.bz2
prefix-2ea68e88531288c29c5533440d63da6c8136d477.zip
scripts/rsync-generation/hashgen: count missing and stray files as failed
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rsync-generation/hashgen.c2
1 files changed, 2 insertions, 0 deletions
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++;
}
}