Author: matz Date: Fri Dec 7 22:43:39 2007 New Revision: 8066 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8066&view=rev Log: Work around the schema problem for now without changing the SOLV format. The Repo writer doesn't account the the zero element at schemadata[0], and starts counting schemas with 0, the attr store reserves schema ID 0 for the empty schema. So the attr store explicitely needs to store that too, otherwise the repo reader will be confused. Modified: trunk/sat-solver/tools/attr_store.c Modified: trunk/sat-solver/tools/attr_store.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/attr_store.c?rev=8066&r1=8065&r2=8066&view=diff ============================================================================== --- trunk/sat-solver/tools/attr_store.c (original) +++ trunk/sat-solver/tools/attr_store.c Fri Dec 7 22:43:39 2007 @@ -897,9 +897,9 @@ s->keys[i].name = str2id (s->pool, localid2str (s, s->keys[i].name), 0); } - write_id (fp, s->szschemata - 1); - Id *ids = s->schemata + 1; - for (i = 1; i < s->nschemata; i++) + write_id (fp, s->szschemata); + Id *ids = s->schemata + 0; + for (i = 0; i < s->nschemata; i++) ids = write_idarray (fp, ids); assert (ids == s->schemata + s->szschemata); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org