1
0
mirror of https://github.com/openSUSE/libsolv.git synced 2026-02-05 12:45:46 +01:00

Call repo_add_autopattern before writing the repo

Otherwise the extension will never have the correct size if
the repo does not get rewritten because of missing file provides.
This commit is contained in:
Michael Schroeder
2017-11-08 15:14:12 +01:00
parent 78fec941b5
commit 276e7586cc
2 changed files with 12 additions and 0 deletions

View File

@@ -14,6 +14,9 @@
#ifdef ENABLE_APPDATA
#include "repo_appdata.h"
#endif
#ifdef SUSE
#include "repo_autopattern.h"
#endif
#include "repoinfo.h"
#include "repoinfo_cache.h"
@@ -194,6 +197,9 @@ repomd_load(struct repoinfo *cinfo, Pool **sigpoolp)
}
fclose(fp);
}
#endif
#ifdef SUSE
repo_add_autopattern(repo, 0);
#endif
data = repo_add_repodata(repo, 0);
repodata_extend_block(data, repo->start, repo->end - repo->start);

View File

@@ -12,6 +12,9 @@
#ifdef ENABLE_APPDATA
#include "repo_appdata.h"
#endif
#ifdef SUSE
#include "repo_autopattern.h"
#endif
#include "repoinfo.h"
#include "repoinfo_cache.h"
@@ -263,6 +266,9 @@ susetags_load(struct repoinfo *cinfo, Pool **sigpoolp)
}
#endif
repo_internalize(repo);
#ifdef SUSE
repo_add_autopattern(repo, 0);
#endif
data = repo_add_repodata(repo, 0);
repodata_extend_block(data, repo->start, repo->end - repo->start);
susetags_add_ext(repo, data);