projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6595b1b
)
Fix rpmdb2solv, reused solvables must retain their association with the
author
Michael Matz
<matz@suse.de>
Sun, 25 Nov 2007 00:57:09 +0000
(
00:57
+0000)
committer
Michael Matz
<matz@suse.de>
Sun, 25 Nov 2007 00:57:09 +0000
(
00:57
+0000)
repo.
tools/repo_rpmdb.c
patch
|
blob
|
history
diff --git
a/tools/repo_rpmdb.c
b/tools/repo_rpmdb.c
index
c70ab6d
..
18254ef
100644
(file)
--- a/
tools/repo_rpmdb.c
+++ b/
tools/repo_rpmdb.c
@@
-618,7
+618,10
@@
repo_add_rpmdb(Repo *repo, Repo *ref)
}
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)