coredump: print build-id only when package version is missing

The build-id is quite verbose, and probably not very useful to a user when they
already know the nvra of the package.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-09-28 10:48:25 +02:00
parent 1a0281a3eb
commit 470c9768c1
+1 -1
View File
@@ -314,7 +314,7 @@ static void report_module_metadata(StackContext *c, const char *name, JsonVarian
fprintf(c->f, " from %s", strnull(id));
}
if (build_id)
if (build_id && !(package && version))
fprintf(c->f, ", build-id=%s", build_id);
fputs("\n", c->f);