summaryrefslogtreecommitdiff
path: root/src/repo.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-03-01 17:10:30 +0100
committerMichael Schroeder <mls@suse.de>2011-03-01 17:10:30 +0100
commitdce83c6b343cc51626c1e3f726d73f807d8af4c3 (patch)
tree6da0e225abdbb2f5af6e0245f38c4b788340d66b /src/repo.c
parent172201e5e2f1a3880a4cd8324da51d92c5547b30 (diff)
downloadlibsolv-dce83c6b343cc51626c1e3f726d73f807d8af4c3.tar.gz
libsolv-dce83c6b343cc51626c1e3f726d73f807d8af4c3.tar.bz2
libsolv-dce83c6b343cc51626c1e3f726d73f807d8af4c3.zip
- add repodata_empty() function
Diffstat (limited to 'src/repo.c')
-rw-r--r--src/repo.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/repo.c b/src/repo.c
index fa7f744..265f880 100644
--- a/src/repo.c
+++ b/src/repo.c
@@ -1032,14 +1032,7 @@ repo_add_repodata(Repo *repo, int flags)
/* re-init */
/* hack: we mis-use REPO_REUSE_REPODATA here */
if (!(flags & REPO_REUSE_REPODATA))
- {
- /* save state and loadcallback */
- void (*loadcallback)(Repodata *) = data->loadcallback;
- repodata_freedata(data);
- repodata_initdata(data, repo, (flags & REPO_LOCALPOOL) ? 1 : 0);
- data->state = REPODATA_LOADING;
- data->loadcallback = loadcallback;
- }
+ repodata_empty(data, (flags & REPO_LOCALPOOL) ? 1 : 0);
return data;
}
return 0; /* must not create a new repodata! */