1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 07:48:50 -05:00

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

View File

@ -172,7 +172,7 @@ class pmdb(object):
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)