pmdb: include directories in package file lists

Needed for checking directories with PKG_FILES.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2014-10-06 03:00:25 -04:00 committed by Allan McRae
parent 62c11e450a
commit 19c3179b7e
1 changed files with 1 additions and 1 deletions

View File

@ -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)