mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-13 21:05:05 -05:00
0dc34f496d
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
18 lines
471 B
Python
18 lines
471 B
Python
self.description = "Check the types of default files in a package"
|
|
|
|
p = pmpkg("pkg1")
|
|
p.files = ["foo/file1",
|
|
"foo/file2",
|
|
"foo/dir/",
|
|
"foo/symdir -> dir"]
|
|
self.addpkg(p)
|
|
|
|
self.args = "-U %s" % p.filename()
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("FILE_TYPE=foo/|dir")
|
|
self.addrule("FILE_TYPE=foo/file1|file")
|
|
self.addrule("FILE_TYPE=foo/file2|file")
|
|
self.addrule("FILE_TYPE=foo/dir|dir")
|
|
self.addrule("FILE_TYPE=foo/symdir|link")
|