mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 14:11:07 +02:00
build_library: fix docstring issues
Fix several docstring issues, so that the docstrings could match with the actual code.
This commit is contained in:
parent
34cb6d305a
commit
04d9fea0c1
@ -105,7 +105,7 @@ def DepsToCopy(ldd_files, allow_list):
|
|||||||
"""Returns a list of deps for a given dynamic executables list.
|
"""Returns a list of deps for a given dynamic executables list.
|
||||||
Args:
|
Args:
|
||||||
ldd_files: List of dynamic files that needs to have the deps evaluated
|
ldd_files: List of dynamic files that needs to have the deps evaluated
|
||||||
deny_list: List of files that we should ignore
|
allow_list: List of files that we should allow
|
||||||
Returns:
|
Returns:
|
||||||
List of files that are dependencies
|
List of files that are dependencies
|
||||||
"""
|
"""
|
||||||
@ -146,6 +146,7 @@ def CopyRequiredFiles(dest_files_root, allow_list):
|
|||||||
"""Generates a list of files that are required for au-generator zip file
|
"""Generates a list of files that are required for au-generator zip file
|
||||||
Args:
|
Args:
|
||||||
dest_files_root: location of the directory where we should copy the files
|
dest_files_root: location of the directory where we should copy the files
|
||||||
|
allow_list: List of files that we should allow
|
||||||
"""
|
"""
|
||||||
if not dest_files_root:
|
if not dest_files_root:
|
||||||
logging.error('Invalid option passed for dest_files_root')
|
logging.error('Invalid option passed for dest_files_root')
|
||||||
@ -286,12 +287,10 @@ def _ExcludeDenylist(library_list, deny_list=[]):
|
|||||||
|
|
||||||
|
|
||||||
def _EnforceAllowList(library_list, allow_list=[]):
|
def _EnforceAllowList(library_list, allow_list=[]):
|
||||||
"""Deletes the set of files from deny_list from the library_list
|
"""Ensures that library_list contains all the items from allow_list
|
||||||
Args:
|
Args:
|
||||||
library_list: List of the library names to filter through deny_list
|
library_list: List of the library names to check
|
||||||
deny_list: List of the deny listed names to filter
|
allow_list: List of the items that ought to be in the library_list
|
||||||
Returns:
|
|
||||||
Filtered library_list
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
for allow_item in allow_list:
|
for allow_item in allow_list:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user