]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Also add autopatterns for the system repo
authorMichael Schroeder <mls@suse.de>
Fri, 7 Sep 2018 14:26:37 +0000 (16:26 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 7 Sep 2018 14:26:37 +0000 (16:26 +0200)
Should have been in commit 276e7586cce0535c194336cd2a3bac9d4f5805e1

examples/solv/repoinfo_system_rpm.c

index 4926ecd22c2d1240c904071355ef651b9c6195c0..b556afc5d6b7eb25df157c7d0690c78e5b84124c 100644 (file)
@@ -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;
 }