mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-21 14:07:53 +00:00
Output manifest version for consistency
This commit is contained in:
parent
7f9b5f0e4f
commit
2d66a150b8
@ -1140,6 +1140,7 @@ int app_rhizome_add_file(int argc, const char *const *argv, const struct command
|
|||||||
cli_puts(secret);
|
cli_puts(secret);
|
||||||
cli_delim("\n");
|
cli_delim("\n");
|
||||||
}
|
}
|
||||||
|
cli_puts("version"); cli_delim(":"); cli_printf("%lld", m->version); cli_delim("\n");
|
||||||
cli_puts("filesize");
|
cli_puts("filesize");
|
||||||
cli_delim(":");
|
cli_delim(":");
|
||||||
cli_printf("%lld", mout->fileLength);
|
cli_printf("%lld", mout->fileLength);
|
||||||
@ -1180,6 +1181,9 @@ int app_rhizome_import_bundle(int argc, const char *const *argv, const struct co
|
|||||||
if (status<0)
|
if (status<0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
// TODO generalise the way we dump manifest details from add, import & export
|
||||||
|
// so callers can also generalise their parsing
|
||||||
|
|
||||||
const char *service = rhizome_manifest_get(m, "service", NULL, 0);
|
const char *service = rhizome_manifest_get(m, "service", NULL, 0);
|
||||||
if (service) {
|
if (service) {
|
||||||
cli_puts("service");
|
cli_puts("service");
|
||||||
@ -1193,10 +1197,8 @@ int app_rhizome_import_bundle(int argc, const char *const *argv, const struct co
|
|||||||
cli_puts(alloca_tohex(m->cryptoSignPublic, RHIZOME_MANIFEST_ID_BYTES));
|
cli_puts(alloca_tohex(m->cryptoSignPublic, RHIZOME_MANIFEST_ID_BYTES));
|
||||||
cli_delim("\n");
|
cli_delim("\n");
|
||||||
}
|
}
|
||||||
cli_puts("filesize");
|
cli_puts("version"); cli_delim(":"); cli_printf("%lld", m->version); cli_delim("\n");
|
||||||
cli_delim(":");
|
cli_puts("filesize"); cli_delim(":"); cli_printf("%lld", m->fileLength); cli_delim("\n");
|
||||||
cli_printf("%lld", m->fileLength);
|
|
||||||
cli_delim("\n");
|
|
||||||
if (m->fileLength != 0) {
|
if (m->fileLength != 0) {
|
||||||
cli_puts("filehash");
|
cli_puts("filehash");
|
||||||
cli_delim(":");
|
cli_delim(":");
|
||||||
|
Loading…
Reference in New Issue
Block a user