#if defined(ENABLE_DEBIAN) && defined(DEBIAN)
#include "repo_deb.h"
#endif
+#ifdef SUSE
+#include "repo_autopattern.h"
+#endif
+
#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
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
}
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)
#if defined(ENABLE_DEBIAN) && defined(DEBIAN)
r = read_installed_debian(cinfo);
#endif
+#ifdef SUSE
+ repo_add_autopattern(cinfo->repo, 0);
+#endif
pool_set_installed(pool, cinfo->repo);
return r;
}
if ((!cinfo->autorefresh || cinfo->metadata_expire) && usecachedrepo(cinfo, 0, 0))
{
+#ifdef SUSE
+ repo_add_autopattern(cinfo->repo, 0);
+#endif
printf("repo '%s':", cinfo->alias);
printf(" cached\n");
continue;
cinfo->repo = 0;
break;
}
+#ifdef SUSE
+ if (cinfo->repo)
+ repo_add_autopattern(cinfo->repo, 0);
+#endif
}
if (sigpool)
pool_free(sigpool);