mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -05:00
1201c8ce3a
This should allow some future tests to set modes and ensure they are set after installation. It is also in anticipation of a test for checking permissions on pacnew files. Signed-off-by: Dan McGee <dan@archlinux.org>
13 lines
270 B
Python
13 lines
270 B
Python
self.description = "Check the mode of default files in a package"
|
|
|
|
p = pmpkg("pkg1")
|
|
p.files = ["bin/foo",
|
|
"bin/bar"]
|
|
self.addpkg(p)
|
|
|
|
self.args = "-U %s" % p.filename()
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
for f in p.files:
|
|
self.addrule("FILE_MODE=%s|644" % f)
|