- eight character user names could break -qlv
- requirements which begin with a leading / require files (in
the database!) instead of packages
+ - clean up conflictsindex during --rebuilddb
2.3.10 -> 2.3.11:
- fixed newlines in --scripts output
sprintf(filename, "%s/%s/providesindex.rpm", rootdir, dbpath);
unlink(filename);
+
+ sprintf(filename, "%s/%s/conflictsindex.rpm", rootdir, dbpath);
+ unlink(filename);
}
int rpmdbMoveDatabase(char * rootdir, char * olddbpath, char * newdbpath) {
sprintf(nfilename, "%s/%s/providesindex.rpm", rootdir, newdbpath);
if (rename(ofilename, nfilename)) rc = 1;
+ sprintf(ofilename, "%s/%s/conflictsindex.rpm", rootdir, olddbpath);
+ sprintf(nfilename, "%s/%s/conflictsindex.rpm", rootdir, newdbpath);
+ if (rename(ofilename, nfilename)) rc = 1;
+
return rc;
}