pactest: treat symlinks with more respect
commit3000b6b473422dca3670c922c24d0e15e963281a
authorDan McGee <dan@archlinux.org>
Mon, 16 May 2011 16:08:32 +0000 (16 11:08 -0500)
committerDan McGee <dan@archlinux.org>
Mon, 16 May 2011 16:31:26 +0000 (16 11:31 -0500)
tree2310d5b9574d2f6906bbddb446179edbfbb54e68
parentac6f6b317ae4bb7adf5ea08fbad6a75f024ff75a
pactest: treat symlinks with more respect

Don't call os.stat() when we should be using os.lstat(); this allows us
to actually test dead symlinks that don't have a corresponding file. Add
a new LINK_EXIST rule that complements FILE_EXIST for a similar purpose.

Signed-off-by: Dan McGee <dan@archlinux.org>
test/pacman/pmpkg.py
test/pacman/pmrule.py
test/pacman/util.py