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:
3317e2d
)
adapt repo->end in repo_empty() function
author
Michael Schroeder
<mls@suse.de>
Tue, 25 Mar 2014 17:40:51 +0000
(18:40 +0100)
committer
Michael Schroeder
<mls@suse.de>
Tue, 25 Mar 2014 17:40:51 +0000
(18:40 +0100)
src/repo.c
patch
|
blob
|
history
diff --git
a/src/repo.c
b/src/repo.c
index
1a934b8
..
e82008f
100644
(file)
--- a/
src/repo.c
+++ b/
src/repo.c
@@
-92,11
+92,13
@@
repo_empty(Repo *repo, int reuseids)
if (s->repo != repo)
break;
pool_free_solvable_block(pool, i + 1, repo->end - (i + 1), reuseids);
+ repo->end = i + 1;
}
/* zero out (i.e. free) solvables belonging to this repo */
for (i = repo->start, s = pool->solvables + i; i < repo->end; i++, s++)
if (s->repo == repo)
memset(s, 0, sizeof(*s));
+ repo->end = repo->start;
repo->nsolvables = 0;
/* free all data belonging to this repo */