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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user