Imported Upstream version 0.6.29
[platform/upstream/libsolv.git] / examples / solv / repoinfo_download.c
index 5ba3014..f5ba8b9 100644 (file)
@@ -13,6 +13,9 @@
 #include "repoinfo.h"
 #include "mirror.h"
 #include "checksig.h"
+#if defined(FEDORA) || defined(MAGEIA)
+#include "repoinfo_config_yum.h"
+#endif
 #include "repoinfo_download.h"
 
 static inline int
@@ -89,7 +92,7 @@ curlfopen(struct repoinfo *cinfo, const char *file, int uncompress, const unsign
          fclose(fp);
          if (!cinfo->baseurl)
            return 0;
-#ifdef FEDORA
+#if defined(FEDORA) || defined(MAGEIA)
          if (strchr(cinfo->baseurl, '$'))
            {
              char *b = yum_substitute(cinfo->repo->pool, cinfo->baseurl);