commit:     754191423cde9624701202041ff1c15aadfa72fc
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  4 09:35:33 2026 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jan  4 09:35:33 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=75419142

qpkg: write BUILD_ID to metadata, like Portage does

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 qpkg.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/qpkg.c b/qpkg.c
index 2296fff..eda01fb 100644
--- a/qpkg.c
+++ b/qpkg.c
@@ -356,10 +356,9 @@ qgpkg_make(tree_pkg_ctx *pkg, qpkg_cb_args *args)
                close(fd);
                archive_entry_free(entry);
        }
-       /* non-standard, but useful: add BUILDID */
        if (atom->BUILDID > 0) {
                entry = archive_entry_new();
-               archive_entry_set_pathname(entry, "metadata/BUILDID");
+               archive_entry_set_pathname(entry, "metadata/BUILD_ID");
                len = snprintf(ename, sizeof(ename), "%u\n", atom->BUILDID);
                archive_entry_set_size(entry, (size_t)len);
                archive_entry_set_mtime(entry, time(NULL), 0);

Reply via email to