#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"
#endif
#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);
}
#endif
-#ifdef SUSE
-static void
-add_autopackages(Pool *pool)
-{
- int i;
- Repo *repo;
- FOR_REPOS(i, repo)
- repo_add_autopattern(repo, 0);
-}
-#endif
-
#ifdef SUSE
static void
showdiskusagechanges(Transaction *trans)
commandlinepkgs[i] = p;
}
if (commandlinerepo)
- repo_internalize(commandlinerepo);
+ {
+ repo_internalize(commandlinerepo);
+#ifdef SUSE
+ repo_add_autopattern(commandlinerepo, 0);
+#endif
+ }
}
#if defined(ENABLE_RPMDB)
if (pool->disttype == DISTTYPE_RPM)
addfileprovides(pool);
-#endif
-#ifdef SUSE
- add_autopackages(pool);
#endif
pool_createwhatprovides(pool);