distromatic: headerlist: also support build time taken from XML

This commit is contained in:
Silvan Calarco 2024-07-06 22:06:31 +02:00
parent af58277e8c
commit 35ec97e05e

View File

@ -1634,6 +1634,10 @@ char* advanceXMLPackageNode(xmlNode **primary_node, xmlNode **filelists_node) {
findXMLPropertyByName(format, "group")->children->content); findXMLPropertyByName(format, "group")->children->content);
newheaderlist->sourcename = strdup((char*) newheaderlist->sourcename = strdup((char*)
findXMLPropertyByName(format, "sourcerpm")->children->content); findXMLPropertyByName(format, "sourcerpm")->children->content);
xmlNode *ptime = findXMLPropertyByName(primary_node[altidx], "time");
tmp = (char*)findXMLAttributeByName(ptime, "build");
newheaderlist->buildtime = atoi(tmp);
free(tmp);
xmlNode *psize = findXMLPropertyByName(primary_node[altidx], "size"); xmlNode *psize = findXMLPropertyByName(primary_node[altidx], "size");
tmp = (char*)findXMLAttributeByName(psize, "package"); tmp = (char*)findXMLAttributeByName(psize, "package");
newheaderlist->size = atoi(tmp); newheaderlist->size = atoi(tmp);