Skip to content

Commit 58e624b

Browse files
committed
different file names for bundles
1 parent 337353d commit 58e624b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adabot/circuitpython_bundle.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ def check_lib_links_md(bundle_path):
145145
bundle = None
146146
if "Adafruit_CircuitPython_Bundle" in bundle_path:
147147
bundle = "adafruit"
148+
listfile_name = "circuitpython_library_list.md"
148149
elif "CircuitPython_Community_Bundle" in bundle_path:
149150
bundle = "community"
151+
listfile_name = "circuitpython_community_auto_library_list.md"
150152
else:
151153
return []
152154
submodules_list = sorted(
@@ -158,7 +160,7 @@ def check_lib_links_md(bundle_path):
158160
# used to generate commit message by comparing new libs to current list
159161
try:
160162
with open(
161-
os.path.join(bundle_path, "circuitpython_library_list.md"), "r"
163+
os.path.join(bundle_path, listfile_name), "r"
162164
) as lib_list:
163165
read_lines = lib_list.read().splitlines()
164166
except OSError:
@@ -203,7 +205,7 @@ def check_lib_links_md(bundle_path):
203205
]
204206

205207
with open(
206-
os.path.join(bundle_path, "circuitpython_library_list.md"), "w"
208+
os.path.join(bundle_path, listfile_name), "w"
207209
) as md_file:
208210
md_file.write("\n".join(lib_list_header))
209211
for line in sorted(write_drivers):

0 commit comments

Comments
 (0)