Can you explain exactly what this patch does before I commit it? Hi! -this is cleaner;-) -_alpm_checkdeps is sophisticated and if we do some changes in dependency checking (for example we add version number for provisions .-), we need to change the _alpm_checkdeps function only. -the old version didn't take care of version numbers, just the package names..., I provide you a requiredby000.py test, which fails without the patch. Bye, ngaba ----requiredby.py---- self.description = "A package was removed with -Rd, then we downgrade it...: requiredby test"
lp1 = pmpkg("pkg1") lp1.depends = ["pkg2=1.0-2"] self.addpkg2db("local", lp1) p = pmpkg("pkg2", "1.0-1") self.addpkg(p) self.args = "-A %s" % p.filename() self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_EXIST=pkg1") self.addrule("PKG_VERSION=pkg2|1.0-1") self.addrule("PKG_EXIST=pkg2") self.addrule("!PKG_REQUIREDBY=pkg2|pkg1")