[zypp-commit] r7908 - /trunk/sat-solver/tools/repo_rpmdb.c
Author: matz Date: Sun Nov 25 01:57:09 2007 New Revision: 7908 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7908&view=rev Log: Fix rpmdb2solv, reused solvables must retain their association with the repo. Modified: trunk/sat-solver/tools/repo_rpmdb.c Modified: trunk/sat-solver/tools/repo_rpmdb.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_rpmdb.c?rev=7908&r1=7907&r2=7908&view=diff ============================================================================== --- trunk/sat-solver/tools/repo_rpmdb.c (original) +++ trunk/sat-solver/tools/repo_rpmdb.c Sun Nov 25 01:57:09 2007 @@ -618,7 +618,10 @@ } else { - memset(s, 0, sizeof(*s)); /* oops, reuse that one */ + /* We can reuse this solvable, but make sure it's still + associated with this repo. */ + memset(s, 0, sizeof(*s)); + s->repo = repo; } } if (s) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
matz@svn.opensuse.org