index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-04-28 22:19:56 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-04-28 22:24:40 -0500 |
commit | 4e6361642e632b8631e3d12ee33b1cf5293edb83 (patch) | |
tree | 7f44d9d9ac2b277dd6f3c610604b066e20407bc8 /pactest | |
parent | 1201c8ce3aa6a8622400e4423c532c19e83f48aa (diff) |
-rw-r--r-- | pactest/tests/mode003.py | 20 |
diff --git a/pactest/tests/mode003.py b/pactest/tests/mode003.py new file mode 100644 index 00000000..1193a5cf --- /dev/null +++ b/pactest/tests/mode003.py @@ -0,0 +1,20 @@ +self.description = "Backup file permissions test (same as orig)" + +lp = pmpkg("filesystem") +lp.files = ["etc/profile|666"] +lp.backup = ["etc/profile*"] +self.addpkg2db("local", lp) + +p = pmpkg("filesystem", "1.0-2") +p.files = ["etc/profile|666**"] +p.backup = ["etc/profile"] +self.addpkg(p) + +self.args = "-U %s" % p.filename() + +self.addrule("PACMAN_RETCODE=0") +self.addrule("!FILE_PACSAVE=etc/profile") +self.addrule("FILE_PACNEW=etc/profile") +self.addrule("FILE_EXIST=etc/profile") +self.addrule("FILE_MODE=etc/profile|666") +self.addrule("FILE_MODE=etc/profile.pacnew|666") |