load_stub(Pool *pool, Repodata *data, void *dp)
{
struct repoinfo *cinfo = data->repo->appdata;
+ switch (cinfo->type)
+ {
#ifdef ENABLE_SUSEREPO
- if (cinfo->type == TYPE_SUSETAGS)
- return susetags_load_ext(data->repo, data);
+ case TYPE_SUSETAGS:
+ return susetags_load_ext(data->repo, data);
#endif
#ifdef ENABLE_RPMMD
- if (cinfo->type == TYPE_RPMMD)
- return repomd_load_ext(data->repo, data);
+ case TYPE_RPMMD:
+ return repomd_load_ext(data->repo, data);
#endif
- return 0;
+ default:
+ return 0;
+ }
}
static unsigned char installedcookie[32];
#endif
struct stat stb;
Pool *sigpool = 0;
+#if defined(ENABLE_SUSEREPO) || defined(ENABLE_RPMMD)
Repodata *data;
+#endif
int badchecksum;
int dorefresh;
#if defined(ENABLE_DEBIAN)
char *arch, *exclude_pat;
int i, j;
Id p;
- Id rpmid, rpmarch, rpmrel, archlock;
+ Id rpmarch, rpmrel, archlock;
+#ifndef DEBIAN
+ Id rpmid;
+#endif
int status = 0;
int nocheck = 0;
int withsrc = 0;
}
pool_addfileprovides(pool);
pool_createwhatprovides(pool);
+#ifndef DEBIAN
rpmid = pool_str2id(pool, "rpm", 0);
rpmarch = pool_str2id(pool, arch, 0);
rpmrel = 0;
-#ifndef DEBIAN
if (rpmid && rpmarch)
{
for (p = 1; p < pool->nsolvables; p++)
if (p < pool->nsolvables)
rpmrel = pool_rel2id(pool, rpmid, rpmarch, REL_ARCH, 1);
}
+#else
+ rpmrel = rpmarch = 0;
#endif
queue_init(&job);