handle = (s - pool->solvables) - repodata->start;
handle = repodata_get_handle(repodata, handle);
did = repodata_str2dir(repodata, dn[di[i]], 1);
+ if (!did)
+ did = repodata_str2dir(repodata, "/", 1);
repodata_add_dirstr(repodata, handle, SOLVABLE_FILELIST, did, bn[i]);
}
}
else
{
p = pd->content;
- id = repodata_str2dir(pd->data, "/", 1);
+ id = 0;
}
+ if (!id)
+ id = repodata_str2dir(pd->data, "/", 1);
repodata_add_dirstr(pd->data, handle, SOLVABLE_FILELIST, id, p);
break;
// xml store capabilities
{
Pool *pool = pd->repo->pool;
-#if 0
+#if 1
/* move file provides to filelist */
/* relies on the fact that rpm inserts self-provides at the end */
if (s->provides)
sdup[sp - str] = 0;
did = repodata_str2dir(pd->data, sdup, 1);
}
+ if (!did)
+ did = repodata_str2dir(pd->data, "/", 1);
repodata_add_dirstr(pd->data, handle, SOLVABLE_FILELIST, did, sp + 1);
*p = 0;
}
case CTAG('=', 'F', 'l', 's'):
{
- if (line[6] != '/')
- continue; /* no relative files, please */
char *p = strrchr(line + 6, '/');
Id did;
if (p && p != line + 6 && !p[1])
else
{
p = line + 6;
- did = repodata_str2dir(data, "/", 1);
+ did = 0;
}
+ if (!did)
+ did = repodata_str2dir(data, "/", 1);
repodata_add_dirstr(data, handle, SOLVABLE_FILELIST, did, p);
continue;
}
}
else if (!strcmp(fn, "packages.FL") || !strcmp(fn, "packages.FL.gz"))
{
+#if 0
sprintf(fnp, "%s/%s", descrdir, fn);
FILE *fp = myfopen(fnp);
if (!fp)
}
repo_add_susetags(repo, fp, vendor, 0, flags | SUSETAGS_EXTEND);
fclose(fp);
+#else
+ /* ignore for now. reactivate when filters work */
+ continue;
+#endif
}
else if (!strncmp(fn, "packages.", 9))
{