[pacman-dev] [PATCH 1/6] pmdb: include directories in package file lists

Andrew Gregory andrew.gregory.8 at gmail.com
Wed Oct 8 06:39:02 UTC 2014


Needed for checking directories with PKG_FILES.

Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
 test/pacman/pmdb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py
index 60e0e9c..aa14dff 100644
--- a/test/pacman/pmdb.py
+++ b/test/pacman/pmdb.py
@@ -172,7 +172,7 @@ def db_read(self, name):
             if line == "%FILES%":
                 while line:
                     line = fd.readline().strip("\n")
-                    if line and line[-1] != "/":
+                    if line:
                         pkg.files.append(line)
             if line == "%BACKUP%":
                 pkg.backup = _getsection(fd)
-- 
2.1.2


More information about the pacman-dev mailing list