Author: mlschroe Date: Tue Feb 19 19:42:41 2008 New Revision: 8823 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8823&view=rev Log: - currently, the dirpool code relies on the fact that ID 1 is an empty string. This led to wrong results if a repodata with own pool was used. for now, make ID1 always the empty string. in the future we'll probably just do away the the root node of the directory tree. Modified: trunk/sat-solver/tools/repo_write.c Modified: trunk/sat-solver/tools/repo_write.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_write.c?rev=8823&r1=8822&r2=8823&view=diff ============================================================================== --- trunk/sat-solver/tools/repo_write.c (original) +++ trunk/sat-solver/tools/repo_write.c Tue Feb 19 19:42:41 2008 @@ -1202,7 +1202,13 @@ needid[i].map = i; cmp_pool = pool; +#if 0 qsort(needid + 1, reloff - 1, sizeof(*needid), needid_cmp_need_s); +#else + /* make first entry '' */ + needid[1].need = 1; + qsort(needid + 2, reloff - 2, sizeof(*needid), needid_cmp_need_s); +#endif qsort(needid + reloff, pool->nrels, sizeof(*needid), needid_cmp_need); sizeid = 0; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org