Skip to content

Commit

Permalink
node: Support lockfile v2
Browse files Browse the repository at this point in the history
Since v2 is backwards compatible with v1, this seems to be all that's
needed to support lockfile v2.

Closes: #192
  • Loading branch information
ptomato authored and barthalion committed May 14, 2021
1 parent abc0352 commit 4f2825f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/flatpak-node-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ def process_lockfile(self, lockfile: Path) -> Iterator[Package]:
with open(lockfile) as fp:
data = json.load(fp)

assert data['lockfileVersion'] == 1, data['lockfileVersion']
assert data['lockfileVersion'] <= 2, data['lockfileVersion']

yield from self.process_dependencies(lockfile, data.get('dependencies', {}))

Expand Down

0 comments on commit 4f2825f

Please sign in to comment.