]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Always set the filelisttype when creating a filelist stub
authorMichael Schroeder <mls@suse.de>
Wed, 24 Oct 2018 08:21:18 +0000 (10:21 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 24 Oct 2018 08:21:18 +0000 (10:21 +0200)
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.

src/repodata.c

index 4c57021e53d109dd042126fcda35c84f921e9c87..71e817577c764b08536c8f95c8af7c68cb7072c6 100644 (file)
@@ -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;
            }