Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into pic_build_try
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanRuzavin committed Feb 6, 2025
2 parents 5f18610 + f36f921 commit da227ed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/core_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,6 @@ def filter_versions(versions):
return filtered_versions

def insertIntoTable(db, tableName, values, columns):
import sqlite3

conn = sqlite3.connect(db)
cur = conn.cursor()
numOfItems = ''
Expand All @@ -523,6 +521,7 @@ def insertIntoTable(db, tableName, values, columns):
conn.close()

def updateDevicesFromCore(dbs, queries):
sdk_version = get_sdk_version()
allDevicesDirs = os.listdir(queries)
for eachDeviceDir in allDevicesDirs:
currentDeviceDir = os.path.join(queries, eachDeviceDir)
Expand Down Expand Up @@ -610,6 +609,13 @@ def updateDevicesFromCore(dbs, queries):
','.join(collumns)
)

# Set sdk installed for latest mikrosdk
conn = sqlite3.connect(eachDb)
cur = conn.cursor()
cur.execute(f'UPDATE SDKs SET installed = 1 WHERE uid = "{sdk_version}"')
conn.commit()
conn.close()

return

def index_package(package_name, mcus_to_index, es_instance, indexed_packages):
Expand Down

0 comments on commit da227ed

Please sign in to comment.