diff options
author | Dan McGee <dan@archlinux.org> | 2011-05-19 17:17:32 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-05-19 17:17:32 -0500 |
commit | 11fb9c767450dc193bbeef755c228aa620df75d9 (patch) | |
tree | 9f47a77d27b39ee7ddef40edba7bed3016d3ba08 /test/pacman/tests | |
parent | 70cf4546d6d35ef9ef2751f37853cde679c88aa7 (diff) | |
parent | f2c4e7e55220addef0581d1c38cc7363b5a0884c (diff) | |
download | pacman-11fb9c767450dc193bbeef755c228aa620df75d9.tar.xz |
Merge branch 'maint'
Conflicts:
lib/libalpm/trans.c
src/pacman/query.c
Diffstat (limited to 'test/pacman/tests')
-rw-r--r-- | test/pacman/tests/symlink002.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/pacman/tests/symlink002.py b/test/pacman/tests/symlink002.py new file mode 100644 index 00000000..6b7423d9 --- /dev/null +++ b/test/pacman/tests/symlink002.py @@ -0,0 +1,43 @@ +self.description = "Dead backed-up symlink when removing package (FS#24230)" + +# symlink file is changed +lp = pmpkg("dummy") +lp.files = ["etc/brokenlink -> nonexistent", + "etc/exists"] +lp.backup = ["etc/brokenlink*"] +self.addpkg2db("local", lp) + +# symlink file is not changed +lp2 = pmpkg("dummy2") +lp2.files = ["etc/brokenlink2 -> nonexistent2", + "etc/exists2"] +lp2.backup = ["etc/brokenlink2"] +self.addpkg2db("local", lp2) + +# package is left alone, not uninstalled +lp3 = pmpkg("dummy3") +lp3.files = ["etc/brokenlink3 -> nonexistent3", + "etc/exists3"] +self.addpkg2db("local", lp3) + +self.args = "-R %s %s" % (lp.name, lp2.name) +#self.args = "-R" + +self.addrule("PACMAN_RETCODE=0") + +self.addrule("!PKG_EXIST=dummy") +self.addrule("!LINK_EXIST=etc/brokenlink") +self.addrule("!FILE_EXIST=etc/nonexistent") +self.addrule("!FILE_EXIST=etc/exists") + +self.addrule("!PKG_EXIST=dummy2") +self.addrule("!LINK_EXIST=etc/brokenlink2") +self.addrule("!FILE_EXIST=etc/nonexistent2") +self.addrule("!FILE_EXIST=etc/exists2") + +self.addrule("PKG_EXIST=dummy3") +self.addrule("LINK_EXIST=etc/brokenlink3") +self.addrule("!FILE_EXIST=etc/nonexistent") +self.addrule("FILE_EXIST=etc/exists3") +self.addrule("FILE_TYPE=etc/brokenlink3|link") +self.addrule("FILE_TYPE=etc/exists3|file") |