From: Klaus Kaempf Date: Mon, 7 Apr 2008 13:39:44 +0000 (+0000) Subject: support X-Git-Tag: BASE-SuSE-Code-12_1-Branch~308^2~442 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8aae01cfaa57b034b8abf9ab5efb8046cb44d8e;p=thirdparty%2Flibsolv.git support --- diff --git a/tools/repo_updateinfoxml.c b/tools/repo_updateinfoxml.c index 420412dd..13467b24 100644 --- a/tools/repo_updateinfoxml.c +++ b/tools/repo_updateinfoxml.c @@ -63,6 +63,7 @@ enum state { STATE_PACKAGE, /* 13 */ STATE_FILENAME, /* 14 */ STATE_REBOOT, /* 15 */ + STATE_RESTART, /* 16 */ NUMSTATES }; @@ -92,6 +93,7 @@ static struct stateswitch stateswitches[] = { { STATE_COLLECTION, "package", STATE_PACKAGE, 0 }, { STATE_PACKAGE, "filename", STATE_FILENAME, 1 }, { STATE_PACKAGE, "reboot_suggested",STATE_REBOOT, 1 }, + { STATE_PACKAGE, "restart_suggested",STATE_RESTART, 1 }, { NUMSTATES } }; @@ -354,6 +356,9 @@ startElement(void *userData, const char *name, const char **atts) /* True */ case STATE_REBOOT: break; + /* True */ + case STATE_RESTART: + break; case NUMSTATES+1: split(NULL, NULL, 0); /* just to keep gcc happy about tools_util.h: static ... split() {...} Urgs!*/ break; @@ -448,6 +453,12 @@ endElement(void *userData, const char *name) repodata_set_str(pd->data, pd->datanum, UPDATE_REBOOT, pd->content); } break; + /* True */ + case STATE_RESTART: + { + repodata_set_str(pd->data, pd->datanum, UPDATE_RESTART, pd->content); + } + break; default: break; }