From 43a2f6319455edadf9947d2e0fa9e68ea4e348ae Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sat, 9 Mar 2013 11:49:27 -0500 Subject: pmpkg: add missing directories to test packages Several tests require complete file lists in order to provide accurate results. These can be non-obvious. Adding missing parent directories helps insure the integrity of tests against human error. Filling in parent directories also allows us to check that file lists are actually valid. There didn't seem to be a good place to do this that was always guaranteed to be run, so this adds a finalize() function to packages that will always be run before the package is actually used to allow for this type of tidying. Fixes FS#30723 Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- test/pacman/pmdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/pacman/pmdb.py') diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py index b694dff6..3e9d305e 100644 --- a/test/pacman/pmdb.py +++ b/test/pacman/pmdb.py @@ -219,7 +219,7 @@ class pmdb(object): # files and install if self.is_local: data = [] - make_section(data, "FILES", pkg.full_filelist()) + make_section(data, "FILES", pkg.filelist()) make_section(data, "BACKUP", pkg.local_backup_entries()) entry["files"] = "\n".join(data) -- cgit v1.2.3