mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-13 12:55:08 -05:00
7d37d9278d
checkdeps and resolvedeps now take both a remove list and an install list as arguments, allowing dependencies to be calculated correctly. This broke the sync990 pactest, but this pactest used dependencies and provides in an unusual way, so it has been changed. Dan: the sync990 pactest was just plain wrong. It didn't satisfy the dependencies correctly, so should never have succeeded. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> [Dan: some variable renaming, clarification in commit message] Signed-off-by: Dan McGee <dan@archlinux.org>
20 lines
436 B
Python
20 lines
436 B
Python
self.description = "Sync a package pulling a dependency conflicting with a target"
|
|
|
|
sp1 = pmpkg("pkg1")
|
|
sp1.depends = ["pkg3"]
|
|
|
|
sp2 = pmpkg("pkg2")
|
|
|
|
sp3 = pmpkg("pkg3")
|
|
sp3.conflicts = ["pkg2"]
|
|
|
|
for p in sp1, sp2, sp3:
|
|
self.addpkg2db("sync", p)
|
|
|
|
self.args = "-S %s" % " ".join([p.name for p in sp1, sp2])
|
|
|
|
self.addrule("PACMAN_RETCODE=1")
|
|
self.addrule("!PKG_EXIST=pkg1")
|
|
self.addrule("!PKG_EXIST=pkg2")
|
|
self.addrule("!PKG_EXIST=pkg3")
|