From: Michael Schroeder Date: Fri, 7 Sep 2018 14:26:37 +0000 (+0200) Subject: Also add autopatterns for the system repo X-Git-Tag: 0.6.36~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32abb144db9afe17dedb9241bc2c7fcca775322e;p=thirdparty%2Flibsolv.git Also add autopatterns for the system repo Should have been in commit 276e7586cce0535c194336cd2a3bac9d4f5805e1 --- 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; }