Skip to content

Commit

Permalink
Updated script workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Sep 27, 2024
1 parent fd7fb81 commit 3eac6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def str2bool(v):

# Package all boards as separate packages
packages = {}
if check_files_in_directory(os.path.join(os.getcwd(), 'resources/queries/boards')):
if check_files_in_directory(os.path.join(os.getcwd(), 'resources/queries/boards')) or not args.package_boards_or_mcus:
packages = package_board_files(
repo_dir,
os.path.join(os.getcwd(), 'bsp/board/include/boards'),
Expand All @@ -560,7 +560,7 @@ def str2bool(v):
json.dump(packages, metadata, indent=4)

# Package all cards as separate packages
if check_files_in_directory(os.path.join(os.getcwd(), 'resources/queries/mcu_cards')):
if check_files_in_directory(os.path.join(os.getcwd(), 'resources/queries/mcu_cards')) or not args.package_boards_or_mcus:
packages_cards = package_card_files(
repo_dir,
os.path.join(os.getcwd(), 'bsp/board/include/mcu_cards'),
Expand Down

0 comments on commit 3eac6f7

Please sign in to comment.