mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-04 16:45:07 -05:00
pactest: variant of package removal due to unmet dependencies
Duplicate of sync140.py but with the alphabetical ordering of the packages changed. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
1c2cfc5bad
commit
927fdc0079
28
test/pacman/tests/sync141.py
Normal file
28
test/pacman/tests/sync141.py
Normal file
@ -0,0 +1,28 @@
|
||||
self.description = "Sysupgrade with ignored package prevent other upgrade"
|
||||
|
||||
lp1 = pmpkg("c_glibc", "1.0-1")
|
||||
lp2 = pmpkg("b_gcc-libs", "1.0-1")
|
||||
lp2.depends = ["c_glibc>=1.0-1"]
|
||||
lp3 = pmpkg("a_pcre", "1.0-1")
|
||||
lp3.depends = ["b_gcc-libs"]
|
||||
|
||||
for p in lp1, lp2, lp3:
|
||||
self.addpkg2db("local", p)
|
||||
|
||||
sp1 = pmpkg("c_glibc", "1.0-2")
|
||||
sp2 = pmpkg("b_gcc-libs", "1.0-2")
|
||||
sp2.depends = ["c_glibc>=1.0-2"]
|
||||
sp3 = pmpkg("a_pcre", "1.0-2")
|
||||
sp3.depends = ["b_gcc-libs"]
|
||||
|
||||
for p in sp1, sp2, sp3:
|
||||
self.addpkg2db("sync", p)
|
||||
|
||||
self.args = "-Su --ignore %s --ask=32" % sp1.name
|
||||
|
||||
self.addrule("PACMAN_RETCODE=0")
|
||||
self.addrule("PKG_VERSION=c_glibc|1.0-1")
|
||||
self.addrule("PKG_VERSION=b_gcc-libs|1.0-1")
|
||||
self.addrule("PKG_VERSION=a_pcre|1.0-2")
|
||||
|
||||
self.expectfailure = True
|
Loading…
Reference in New Issue
Block a user