diff options
author | Michael Schroeder <mls@suse.de> | 2011-03-01 17:10:30 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2011-03-01 17:10:30 +0100 |
commit | dce83c6b343cc51626c1e3f726d73f807d8af4c3 (patch) | |
tree | 6da0e225abdbb2f5af6e0245f38c4b788340d66b /src/repo.c | |
parent | 172201e5e2f1a3880a4cd8324da51d92c5547b30 (diff) | |
download | libsolv-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.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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! */ |