mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
Tests: '-S repo/group' syntax
when calling '-S repo/group', only group members in <repo> should should be installed (group members in other repos are ignored) Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
9d0b33fd33
commit
8f2eaa51c2
23
test/pacman/tests/sync024.py
Normal file
23
test/pacman/tests/sync024.py
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
self.description = "Install a group from a sync db repo/group syntax"
|
||||||
|
|
||||||
|
sp1 = pmpkg("pkg1")
|
||||||
|
sp2 = pmpkg("pkg2")
|
||||||
|
sp3 = pmpkg("pkg3")
|
||||||
|
newp1 = pmpkg("pkg1", "1.2-1")
|
||||||
|
|
||||||
|
for p in sp1, sp2, sp3, newp1:
|
||||||
|
setattr(p, "groups", ["grp"])
|
||||||
|
|
||||||
|
self.addpkg2db("testing", newp1);
|
||||||
|
|
||||||
|
for p in sp1, sp2, sp3:
|
||||||
|
self.addpkg2db("sync", p);
|
||||||
|
|
||||||
|
self.args = "-S testing/grp"
|
||||||
|
|
||||||
|
self.addrule("PACMAN_RETCODE=0")
|
||||||
|
for p in sp2, sp3:
|
||||||
|
self.addrule("!PKG_EXIST=%s" % p.name)
|
||||||
|
self.addrule("PKG_EXIST=%s" % newp1.name)
|
||||||
|
# The newer version should still be installed
|
||||||
|
self.addrule("PKG_VERSION=pkg1|1.2-1")
|
Loading…
Reference in New Issue
Block a user