Skip to content

Commit c3c600d

Browse files
authored
Merge pull request adafruit#1394 from tannewt/fix_board_info
Fix build board info for python3.5
2 parents 4f73801 + 96e65fa commit c3c600d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/build_board_info.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def generate_download_info():
215215
board_path = os.path.join("../ports", port, "boards")
216216
for board_path in os.scandir(board_path):
217217
if board_path.is_dir():
218-
board_files = os.listdir(board_path)
218+
board_files = os.listdir(board_path.path)
219219
board_id = board_path.name
220220
board_info = board_mapping[board_id]
221221

@@ -239,8 +239,10 @@ def generate_download_info():
239239

240240
changes["new_languages"] = set(languages) - previous_languages
241241

242-
if changes["new_languages"]:
242+
if changes["new_release"]:
243243
create_pr(changes, current_info, git_info)
244+
else:
245+
print("No new release to update")
244246

245247
if __name__ == "__main__":
246248
if "TRAVIS_TAG" in os.environ and os.environ["TRAVIS_TAG"]:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy