Skip to content

Commit 4d1c420

Browse files
committed
support findpkg
1 parent 441ae6a commit 4d1c420

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

port/linux/release_helper.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,9 @@ def dump(self, file_path):
140140
with open(file_path, "w") as f:
141141
# dump with formating
142142
toml.dump(self.pkg_dict, f)
143+
144+
def findPackage(self, pkg_name:str):
145+
for package in self.packages:
146+
if package.name == pkg_name:
147+
return package
148+
return None

0 commit comments

Comments
 (0)