mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-11 13:59:02 -05:00
e702f56ea6
The first step for resolving FS#20221. sync023 is the case from the bug report; sync022 is already working fine but we have no tests at all that test the --needed option in any form. Signed-off-by: Dan McGee <dan@archlinux.org>
26 lines
542 B
Python
26 lines
542 B
Python
self.description = "Install a group from a sync db using --needed"
|
|
|
|
lp1 = pmpkg("pkg1")
|
|
lp2 = pmpkg("pkg2")
|
|
lp3 = pmpkg("pkg3")
|
|
|
|
sp1 = pmpkg("pkg1", "1.1-1")
|
|
sp2 = pmpkg("pkg2")
|
|
sp3 = pmpkg("pkg3")
|
|
|
|
for p in lp1, lp2, lp3, sp1, sp2, sp3:
|
|
setattr(p, "groups", ["grp"])
|
|
|
|
for p in lp1, lp2, lp3:
|
|
self.addpkg2db("local", p)
|
|
|
|
for p in sp1, sp2, sp3:
|
|
self.addpkg2db("sync", p);
|
|
|
|
self.args = "-S --needed grp"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
for p in sp1, sp2, sp3:
|
|
self.addrule("PKG_EXIST=%s" % p.name)
|
|
self.addrule("PKG_VERSION=pkg1|1.1-1")
|