mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -05:00
remove sync022 and sync023 pactest.
Currently the replaces flag is only used for forcing the replacement
of package (eg because of a renaming) on sysupgrade operation.
If the replaces flag should also be used for resolving conflicts,
then it should be discussed and specified correctly first.
References:
http://bugs.archlinux.org/task/7415#comment17207
http://www.archlinux.org/pipermail/pacman-dev/2007-June/008553.html
commit which introduced the replace flag : 4fcec8f03f
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
This commit is contained in:
parent
7234785601
commit
5ed501565e
@ -1,22 +0,0 @@
|
|||||||
self.description = "Install group with two conflicting packages, one replacing other"
|
|
||||||
|
|
||||||
sp1 = pmpkg("pkg1")
|
|
||||||
sp1.groups = ["grp"]
|
|
||||||
self.addpkg2db("sync", sp1);
|
|
||||||
|
|
||||||
sp2 = pmpkg("pkg2")
|
|
||||||
sp2.groups = ["grp"]
|
|
||||||
sp2.provides = ["pkg1"]
|
|
||||||
sp2.conflicts = ["pkg1"]
|
|
||||||
sp2.replaces = ["pkg1"]
|
|
||||||
self.addpkg2db("sync", sp2);
|
|
||||||
|
|
||||||
lp1 = pmpkg("pkg2")
|
|
||||||
lp1.groups = ["grp"]
|
|
||||||
self.addpkg2db("local", lp1);
|
|
||||||
|
|
||||||
self.args = "-S %s" % "grp"
|
|
||||||
|
|
||||||
self.addrule("PACMAN_RETCODE=0")
|
|
||||||
self.addrule("PKG_EXIST=pkg2");
|
|
||||||
self.addrule("!PKG_EXIST=pkg1");
|
|
@ -1,22 +0,0 @@
|
|||||||
self.description = "Install group with two conflicting packages, one replacing other (backwards)"
|
|
||||||
|
|
||||||
sp1 = pmpkg("pkg1")
|
|
||||||
sp1.groups = ["grp"]
|
|
||||||
sp1.provides = ["pkg2"]
|
|
||||||
sp1.conflicts = ["pkg2"]
|
|
||||||
sp1.replaces = ["pkg2"]
|
|
||||||
self.addpkg2db("sync", sp1);
|
|
||||||
|
|
||||||
sp2 = pmpkg("pkg2")
|
|
||||||
sp2.groups = ["grp"]
|
|
||||||
self.addpkg2db("sync", sp2);
|
|
||||||
|
|
||||||
lp1 = pmpkg("pkg2")
|
|
||||||
lp1.groups = ["grp"]
|
|
||||||
self.addpkg2db("local", lp1);
|
|
||||||
|
|
||||||
self.args = "-S %s" % "grp"
|
|
||||||
|
|
||||||
self.addrule("PACMAN_RETCODE=0")
|
|
||||||
self.addrule("PKG_EXIST=pkg1");
|
|
||||||
self.addrule("!PKG_EXIST=pkg2");
|
|
Loading…
Reference in New Issue
Block a user