1 self
.description
= "Backup file permissions test (same as orig)"
3 lp
= pmpkg("filesystem")
4 lp
.files
= ["etc/profile|666"]
5 lp
.backup
= ["etc/profile*"]
6 self
.addpkg2db("local", lp
)
8 p
= pmpkg("filesystem", "1.0-2")
9 p
.files
= ["etc/profile|666**"]
10 p
.backup
= ["etc/profile"]
13 self
.args
= "-U %s" % p
.filename()
15 self
.addrule("PACMAN_RETCODE=0")
16 self
.addrule("!FILE_PACSAVE=etc/profile")
17 self
.addrule("FILE_PACNEW=etc/profile")
18 self
.addrule("FILE_EXIST=etc/profile")
19 self
.addrule("FILE_MODE=etc/profile|666")
20 self
.addrule("FILE_MODE=etc/profile.pacnew|666")