1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-14 05:15:11 -05:00
pacman/pactest/tests/sync404.py
Dan McGee 5aa873edb6 sync.c: add sanity check so we don't dereference a null pointer
Originally noticed in FS#9024, but was fixed in previous changes anyway.
However, it doesn't hurt to still check it.

Also add a pactest from Chantry Xavier for the original problem to ensure
we can't reproduce it.

Signed-off-by: Dan McGee <dan@archlinux.org>
2008-01-05 17:35:43 -06:00

27 lines
612 B
Python

self.description = "FS#9024"
sp = pmpkg("xorg-server")
sp.depends = [ "libgl" ]
self.addpkg2db("sync", sp)
sp1 = pmpkg("nvidia-utils")
sp1.provides = [ "libgl" ]
sp1.conflicts = [ "libgl", "libgl-dri" ]
self.addpkg2db("sync", sp1)
sp2 = pmpkg("libgl")
sp2.provides = [ "libgl-dri" ]
self.addpkg2db("sync", sp2)
sp3 = pmpkg("nvidia")
sp3.depends = [ "nvidia-utils" ]
self.addpkg2db("sync", sp3)
self.args = "-S xorg-server nvidia"
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=xorg-server")
self.addrule("PKG_EXIST=nvidia")
self.addrule("PKG_EXIST=nvidia-utils")
self.addrule("!PKG_EXIST=libgl")