Commit 905e711a authored by Andrew Gregory's avatar Andrew Gregory
Browse files

makepkg: store pkgtype in xdata



Package type is not relevant to alpm or even exposed to front-ends in
any way.

Signed-off-by: default avatarAndrew Gregory <andrew.gregory.8@gmail.com>
parent 2d9ed24d
Pipeline #16503 passed with stage
in 1 minute and 45 seconds
......@@ -244,8 +244,6 @@ static int parse_descfile(alpm_handle_t *handle, struct archive *a, alpm_pkg_t *
CALLOC(backup, 1, sizeof(alpm_backup_t), return -1);
STRDUP(backup->name, ptr, FREE(backup); return -1);
newpkg->backup = alpm_list_add(newpkg->backup, backup);
} else if(strcmp(key, "pkgtype") == 0) {
/* not used atm */
} else if(strcmp(key, "xdata") == 0) {
alpm_pkg_xdata_t *pd = _alpm_pkg_parse_xdata(ptr);
if(pd == NULL || !alpm_list_append(&newpkg->xdata, pd)) {
......
......@@ -487,7 +487,7 @@ write_pkginfo() {
write_kv_pair "pkgname" "$pkgname"
write_kv_pair "pkgbase" "$pkgbase"
write_kv_pair "pkgtype" "$pkgtype"
write_kv_pair "xdata" "pkgtype=$pkgtype"
local fullver=$(get_full_version)
write_kv_pair "pkgver" "$fullver"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment