diff options
author | Fabian Groffen <grobian@gentoo.org> | 2017-11-29 20:00:03 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2017-11-29 20:00:03 +0100 |
commit | f931cecd430f96ab3ae7c3b1561104c7561af387 (patch) | |
tree | 5888195b890589efef3e60cbcba1664d072eda3a /scripts | |
parent | hashgen: ensure top level Manifest isn't taken for package (diff) | |
download | prefix-f931cecd430f96ab3ae7c3b1561104c7561af387.tar.gz prefix-f931cecd430f96ab3ae7c3b1561104c7561af387.tar.bz2 prefix-f931cecd430f96ab3ae7c3b1561104c7561af387.zip |
hashgen: warn when an unsupported hash is found
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/rsync-generation/hashgen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/rsync-generation/hashgen.c b/scripts/rsync-generation/hashgen.c index 7700e88198..25ae1db70e 100644 --- a/scripts/rsync-generation/hashgen.c +++ b/scripts/rsync-generation/hashgen.c @@ -231,6 +231,9 @@ parse_layout_conf(const char *path) ret |= HASH_WHIRLPOOL; } else if (strncmp(tok, "BLAKE2B", sz) == 0) { ret |= HASH_BLAKE2B; + } else { + fprintf(stderr, "warning: unsupported hash from " + "layout.conf: %.*s\n", (int)sz, tok); } while (isspace((int)*q) && *q != '\n') q++; |