[pacman-dev] Database consistency checking

Nagy Gabor ngaba at petra.hos.u-szeged.hu
Thu Jul 19 15:28:42 EDT 2007


Well, I thought the following method (pseudocode)
for (pkg in pkgcache) {
pkgdup = alpm_pkg_dup(pkg);
clean_requiredby(pkgdup);
_alpm_pkg_update_requiredby(pkgdup);
good = sort_then_compare_requiredby(pkg, pkgdup);
alpm_pkg_free(pkgdup);
}
-------------
depend checking is similar, just use alpm_checkdeps for a list containing
pkgdup only.
-------------
Bye, ngaba
PS: Sorry for replying your e-mail address earlier.




More information about the pacman-dev mailing list