if ENABLED_SUSEREPO is disabled, repo_add_products() is not part of the
libsolv_ext. This fails linking for rpmdb2solv.c.
Also treat unused-variable warnings occurring with the conditional blocks.
const char *filename;
const unsigned char *filechksum;
Id filechksumtype;
+#ifdef ENABLE_SUSEREPO
const char *descrdir;
int defvendor;
+#endif
struct stat stb;
Pool *sigpool = 0;
Repodata *data;
const char *root = 0;
const char *basefile = 0;
const char *refname = 0;
+#ifdef ENABLE_SUSEREPO
char *proddir = 0;
+#endif
char *outfile = 0;
/*
percent = 1;
break;
case 'p':
+#ifdef ENABLE_SUSEREPO
proddir = optarg;
+#endif
break;
case 'x':
extrapool = 1;
if (!nopacks)
repo_add_rpmdb(repo, ref, root, REPO_REUSE_REPODATA | REPO_NO_INTERNALIZE | (percent ? RPMDB_REPORT_PROGRESS : 0));
+#ifdef ENABLE_SUSEREPO
if (proddir && *proddir)
{
char *buf = proddir;
if (buf != proddir)
solv_free(buf);
}
-
+#endif
repodata_internalize(data);
if (ref)