[zypp-commit] r11474 - /trunk/sat-solver/tools/repo_updateinfoxml.c
Author: mlschroe Date: Fri Oct 24 12:10:53 2008 New Revision: 11474 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11474&view=rev Log: - don't abort on unknown elements - don't try to set NULL strings Modified: trunk/sat-solver/tools/repo_updateinfoxml.c Modified: trunk/sat-solver/tools/repo_updateinfoxml.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_updateinfoxml.c?rev=11474&r1=11473&r2=11474&view=diff ============================================================================== --- trunk/sat-solver/tools/repo_updateinfoxml.c (original) +++ trunk/sat-solver/tools/repo_updateinfoxml.c Fri Oct 24 12:10:53 2008 @@ -225,7 +225,7 @@ if (sw->from != pd->state) { -#if 1 +#if 0 fprintf(stderr, "into unknown: %s (from: %d)\n", name, pd->state); exit( 1 ); #endif @@ -329,10 +329,14 @@ type = atts[1]; } handle = repodata_new_handle(pd->data); - repodata_set_str(pd->data, handle, UPDATE_REFERENCE_HREF, href); - repodata_set_str(pd->data, handle, UPDATE_REFERENCE_ID, id); - repodata_set_str(pd->data, handle, UPDATE_REFERENCE_TITLE, title); - repodata_set_poolstr(pd->data, handle, UPDATE_REFERENCE_TYPE, type); + if (href) + repodata_set_str(pd->data, handle, UPDATE_REFERENCE_HREF, href); + if (id) + repodata_set_str(pd->data, handle, UPDATE_REFERENCE_ID, id); + if (title) + repodata_set_str(pd->data, handle, UPDATE_REFERENCE_TITLE, title); + if (type) + repodata_set_poolstr(pd->data, handle, UPDATE_REFERENCE_TYPE, type); repodata_add_flexarray(pd->data, pd->datanum, UPDATE_REFERENCE, handle); } break; @@ -427,7 +431,7 @@ if (pd->depth != pd->statedepth) { pd->depth--; -#if 1 +#if 0 fprintf(stderr, "back from unknown %d %d %d\n", pd->state, pd->depth, pd->statedepth); #endif return; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
mlschroe@svn.opensuse.org