From: Klaus Kaempf Date: Mon, 7 Apr 2008 14:25:28 +0000 (+0000) Subject: use 'repodata_set_void()' for boolean attributes X-Git-Tag: BASE-SuSE-Code-12_1-Branch~747 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f52fd877e90d6c3405fdaf504d4bb0c11cf36c3c;p=platform%2Fupstream%2Flibsolv.git use 'repodata_set_void()' for boolean attributes --- diff --git a/tools/repo_patchxml.c b/tools/repo_patchxml.c index 32f3e80..39b35c5 100644 --- a/tools/repo_patchxml.c +++ b/tools/repo_patchxml.c @@ -579,10 +579,10 @@ startElement(void *userData, const char *name, const char **atts) s->freshens = adddep(pool, pd, s->freshens, atts, 0); break; case STATE_REBOOT: - repodata_set_str(pd->data, pd->datanum, UPDATE_REBOOT, pd->content); + repodata_set_void(pd->data, pd->datanum, UPDATE_REBOOT); break; case STATE_RESTART: - repodata_set_str(pd->data, pd->datanum, UPDATE_RESTART, pd->content); + repodata_set_void(pd->data, pd->datanum, UPDATE_RESTART); break; default: break; diff --git a/tools/repo_updateinfoxml.c b/tools/repo_updateinfoxml.c index cb8a7e3..7d1151b 100644 --- a/tools/repo_updateinfoxml.c +++ b/tools/repo_updateinfoxml.c @@ -279,7 +279,7 @@ startElement(void *userData, const char *name, const char **atts) solvable->vendor = str2id(pool, from, 1); solvable->evr = str2id(pool, version, 1); solvable->arch = ARCH_NOARCH; - repodata_set_str(pd->data, pd->datanum, UPDATE_SEVERITY, type); + repodata_set_str(pd->data, pd->datanum, SOLVABLE_PATCHCATEGORY, type); } break; /* FEDORA-2007-4594 */ @@ -301,7 +301,7 @@ startElement(void *userData, const char *name, const char **atts) if (!strcmp(*atts, "date")) date = atts[1]; } - repodata_set_str(pd->data, pd->datanum, UPDATE_TIMESTAMP, date); + repodata_set_str(pd->data, pd->datanum, SOLVABLE_BUILDTIME, date); } break; case STATE_REFERENCES: @@ -451,13 +451,13 @@ endElement(void *userData, const char *name) /* True */ case STATE_REBOOT: { - repodata_set_str(pd->data, pd->datanum, UPDATE_REBOOT, pd->content); + repodata_set_void(pd->data, pd->datanum, UPDATE_REBOOT); } break; /* True */ case STATE_RESTART: { - repodata_set_str(pd->data, pd->datanum, UPDATE_RESTART, pd->content); + repodata_set_void(pd->data, pd->datanum, UPDATE_RESTART); } break; default: