makepkg: store pkgtype in xdata
Package type is not relevant to alpm or even exposed to front-ends in any way. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
This commit is contained in:
parent
fe028c7f6a
commit
6dcd4b5383
2 changed files with 1 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue