check w/ low['name'] only

This commit is contained in:
Z. Liu 2015-05-07 16:29:32 +08:00 committed by rallytime
parent 304cc499e9
commit 39869a15bd

View File

@ -344,7 +344,7 @@ def _gen_keep_files(name, require):
required_files = [comp for comp in require if 'file' in comp]
for comp in required_files:
for low in __lowstate__:
if comp['file'] in (low['__id__'], low['name']):
if low['name'] == comp['file']:
fn = low['name']
if os.path.isdir(comp['file']):
if _is_child(comp['file'], name):