projects
/
platform
/
upstream
/
libsolv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.6.29
[platform/upstream/libsolv.git]
/
examples
/
solv
/
repoinfo_download.c
diff --git
a/examples/solv/repoinfo_download.c
b/examples/solv/repoinfo_download.c
index
5ba3014
..
f5ba8b9
100644
(file)
--- a/
examples/solv/repoinfo_download.c
+++ b/
examples/solv/repoinfo_download.c
@@
-13,6
+13,9
@@
#include "repoinfo.h"
#include "mirror.h"
#include "checksig.h"
#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
#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;
fclose(fp);
if (!cinfo->baseurl)
return 0;
-#if
def FEDORA
+#if
defined(FEDORA) || defined(MAGEIA)
if (strchr(cinfo->baseurl, '$'))
{
char *b = yum_substitute(cinfo->repo->pool, cinfo->baseurl);
if (strchr(cinfo->baseurl, '$'))
{
char *b = yum_substitute(cinfo->repo->pool, cinfo->baseurl);