summaryrefslogtreecommitdiff
path: root/ext/repo_rpmmd.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2020-11-27 14:49:33 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2020-11-27 14:49:33 +0900
commitb712cabb59f7155205489f15a37addb4ac8b0069 (patch)
treef23ecab07fbaa48e274c587d66708daad1cd347a /ext/repo_rpmmd.c
parent2792a56227313bb9f16bd70604e79f47e9650885 (diff)
downloadlibsolv-b712cabb59f7155205489f15a37addb4ac8b0069.tar.gz
libsolv-b712cabb59f7155205489f15a37addb4ac8b0069.tar.bz2
libsolv-b712cabb59f7155205489f15a37addb4ac8b0069.zip
Imported Upstream version 0.7.15upstream/0.7.15
Diffstat (limited to 'ext/repo_rpmmd.c')
-rw-r--r--ext/repo_rpmmd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/repo_rpmmd.c b/ext/repo_rpmmd.c
index 9bb50a0..1232e43 100644
--- a/ext/repo_rpmmd.c
+++ b/ext/repo_rpmmd.c
@@ -96,6 +96,7 @@ enum state {
STATE_FRESHENS,
STATE_SOURCERPM,
STATE_HEADERRANGE,
+ STATE_BUILDHOST,
STATE_PROVIDESENTRY,
STATE_REQUIRESENTRY,
@@ -196,6 +197,7 @@ static struct solv_xmlparser_element stateswitches[] = {
{ STATE_SOLVABLE, "rpm:freshens", STATE_FRESHENS, 0 },
{ STATE_SOLVABLE, "rpm:sourcerpm", STATE_SOURCERPM, 1 },
{ STATE_SOLVABLE, "rpm:header-range", STATE_HEADERRANGE, 0 },
+ { STATE_SOLVABLE, "rpm:buildhost", STATE_BUILDHOST, 1 },
{ STATE_SOLVABLE, "file", STATE_FILE, 1 },
{ STATE_SOLVABLE, "changelog", STATE_CHANGELOG, 1 },
@@ -1036,6 +1038,10 @@ endElement(struct solv_xmlparser *xmlp, int state, char *content)
if (*content)
repodata_set_poolstr(pd->data, handle, SOLVABLE_PACKAGER, content);
break;
+ case STATE_BUILDHOST:
+ if (*content)
+ repodata_set_str(pd->data, handle, SOLVABLE_BUILDHOST, content);
+ break;
case STATE_SOURCERPM:
if (*content)
repodata_set_sourcepkg(pd->data, handle, content);