Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Javagedes committed Sep 25, 2023
1 parent c16e3a4 commit 7f13c5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions edk2toollib/database/tables/instanced_fv_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ def create_tables(self, db_cursor: sqlite3.Cursor) -> None:
"""Create the tables necessary for this parser."""
db_cursor.execute(CREATE_INSTANCED_FV_TABLE)

def parse(self, db_cursor: sqlite3.Cursor, pathobj: Edk2Path, id, env) -> None:
def parse(self, db_cursor: sqlite3.Cursor, pathobj: Edk2Path, env_id, env) -> None:
"""Parse the workspace and update the database."""
self.pathobj = pathobj
self.ws = Path(self.pathobj.WorkspacePath)
self.env = env
self.env_id = env_id
self.dsc = self.env.get("ACTIVE_PLATFORM", None)
self.fdf = self.env.get("FLASH_DEFINITION", None)
self.arch = self.env["TARGET_ARCH"].split(" ")
Expand All @@ -77,10 +78,9 @@ def parse(self, db_cursor: sqlite3.Cursor, pathobj: Edk2Path, id, env) -> None:
inf = str(Path(self.pathobj.GetEdk2RelativePathFromAbsolutePath(inf)))
inf_list.append(Path(inf).as_posix())

row = (id, fv, Path(self.fdf).name, self.fdf)
row = (self.env_id, fv, Path(self.fdf).name, self.fdf)
db_cursor.execute(INSERT_INSTANCED_FV_ROW, row)
fv_id = db_cursor.lastrowid

for inf in inf_list:
row = (id, "instanced_fv", fv_id, "inf", inf)
row = (self.env_id, "instanced_fv", fv, "inf", inf)
db_cursor.execute(INSERT_JUNCTION_ROW, row)

0 comments on commit 7f13c5b

Please sign in to comment.