From: Michael Schroeder Date: Wed, 24 Oct 2018 08:21:18 +0000 (+0200) Subject: Always set the filelisttype when creating a filelist stub X-Git-Tag: 0.7.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b13ebcf6944c83112d2533713818d1ee942848d;p=thirdparty%2Flibsolv.git Always set the filelisttype when creating a filelist stub We used to do this only if there was a filtered filelist, but that leads to problems if the filtered filelist is not in the same repodata as the extension list. --- diff --git a/src/repodata.c b/src/repodata.c index 4c57021e..71e81757 100644 --- a/src/repodata.c +++ b/src/repodata.c @@ -3758,7 +3758,6 @@ repodata_create_stubs(Repodata *data) Dataiterator di; Id xkeyname = 0; int i, cnt = 0; - int filelisttype = data->filelisttype; dataiterator_init(&di, pool, repo, SOLVID_META, REPOSITORY_EXTERNAL, 0, 0); while (dataiterator_step(&di)) @@ -3798,7 +3797,7 @@ repodata_create_stubs(Repodata *data) else { repodata_add_stubkey(sdata, xkeyname, di.kv.id); - if (xkeyname == SOLVABLE_FILELIST && filelisttype == REPODATA_FILELIST_FILTERED) + if (xkeyname == SOLVABLE_FILELIST) repodata_set_filelisttype(sdata, REPODATA_FILELIST_EXTENSION); xkeyname = 0; }