]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Switch solv to read rpm-md repos on Mageia 219/head
authorNeal Gompa <ngompa13@gmail.com>
Sun, 6 Aug 2017 04:17:15 +0000 (00:17 -0400)
committerNeal Gompa <ngompa13@gmail.com>
Sun, 6 Aug 2017 04:17:23 +0000 (00:17 -0400)
Mageia is using libsolv with DNF and RPM-MD repositories, thus
the solv tool should be using our RPM-MD repository configuration.

examples/solv/repoinfo.c

index 91f7c289f3edd4e5f4717fdb4d1d9b9bc491a729..62739728034f05fff5d756e8f57e0102914e76a9 100644 (file)
 #include "repoinfo.h"
 #include "repoinfo_cache.h"
 
-#if defined(SUSE) || defined(FEDORA)
+#if defined(SUSE) || defined(FEDORA) || defined(MAGEIA)
 #include "repoinfo_config_yum.h"
 #endif
 #if defined(DEBIAN)
 #include "repoinfo_config_debian.h"
 #endif
-#if defined(MANDRIVA) || defined(MAGEIA)
+#if defined(MANDRIVA)
 #include "repoinfo_config_urpmi.h"
 #endif
 
@@ -80,7 +80,7 @@ free_repoinfos(struct repoinfo *repoinfos, int nrepoinfos)
       solv_free(cinfo->components);
     }
   solv_free(repoinfos);
-#if defined(SUSE) || defined(FEDORA)
+#if defined(SUSE) || defined(FEDORA) || defined(MAGEIA)
   yum_substitute((Pool *)0, 0);                /* free data */
 #endif
 }
@@ -89,10 +89,10 @@ struct repoinfo *
 read_repoinfos(Pool *pool, int *nrepoinfosp)
 {
   struct repoinfo *repoinfos = 0;
-#if defined(SUSE) || defined(FEDORA)
+#if defined(SUSE) || defined(FEDORA) || defined(MAGEIA)
   repoinfos = read_repoinfos_yum(pool, nrepoinfosp);
 #endif
-#if defined(MANDRIVA) || defined(MAGEIA)
+#if defined(MANDRIVA)
   repoinfos = read_repoinfos_urpmi(pool, nrepoinfosp);
 #endif
 #if defined(DEBIAN)