Skip to content

Commit 96a4fcb

Browse files
committed
checking bug - restore -d
Signed-off-by: Ethan Lee <[email protected]>
1 parent daf782d commit 96a4fcb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/fosslight_android/android_binary_analysis.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
from .check_package_file import check_packaging_files
3434
from .check_notice_file import (
3535
find_bin_in_notice,
36-
read_notice_file
36+
read_notice_file,
37+
divide_notice_files_by_binary
3738
)
3839
from ._binary_db_controller import get_oss_info_from_db
3940
from ._common import (
@@ -820,6 +821,7 @@ def main():
820821
parser.add_argument('-p', '--packaging', type=str, required=False)
821822
parser.add_argument('-r', '--remove', type=str, required=False)
822823
parser.add_argument('-e', '--exclude', nargs="*", required=False, default=[])
824+
parser.add_argument('-d', '--divide', type=str, required=False)
823825

824826
args = parser.parse_args()
825827
if args.help:
@@ -845,6 +847,11 @@ def main():
845847
if args.packaging:
846848
check_packaging_files(args.packaging)
847849
return
850+
851+
if args.divide:
852+
divide_notice_files_by_binary(args.divide, python_script_dir, now)
853+
return
854+
848855
if args.remove: # Remove the inputted list from the binary list.
849856
remove_list_file = args.remove
850857
read_success, android_log_lines = read_file(ANDROID_LOG_FILE_NAME)

0 commit comments

Comments
 (0)