1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08: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%": if line == "%FILES%":
while line: while line:
line = fd.readline().strip("\n") line = fd.readline().strip("\n")
if line and line[-1] != "/": if line:
pkg.files.append(line) pkg.files.append(line)
if line == "%BACKUP%": if line == "%BACKUP%":
pkg.backup = _getsection(fd) pkg.backup = _getsection(fd)