From 32abb144db9afe17dedb9241bc2c7fcca775322e Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Fri, 7 Sep 2018 16:26:37 +0200 Subject: [PATCH] Also add autopatterns for the system repo Should have been in commit 276e7586cce0535c194336cd2a3bac9d4f5805e1 --- examples/solv/repoinfo_system_rpm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/solv/repoinfo_system_rpm.c b/examples/solv/repoinfo_system_rpm.c index 4926ecd2..b556afc5 100644 --- a/examples/solv/repoinfo_system_rpm.c +++ b/examples/solv/repoinfo_system_rpm.c @@ -17,6 +17,9 @@ #if defined(ENABLE_APPDATA) #include "repo_appdata.h" #endif +#ifdef SUSE +#include "repo_autopattern.h" +#endif #include "transaction.h" #include "repoinfo.h" @@ -118,6 +121,9 @@ read_installed_rpm(struct repoinfo *cinfo) if (ofp) fclose(ofp); repo_internalize(repo); +#ifdef SUSE + repo_add_autopattern(repo, 0); +#endif writecachedrepo(cinfo, 0, 0); return 1; } -- 2.47.2