mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
support findpkg
This commit is contained in:
parent
441ae6a1f8
commit
4d1c420ae1
@ -140,3 +140,9 @@ class PackageReleaseList:
|
|||||||
with open(file_path, "w") as f:
|
with open(file_path, "w") as f:
|
||||||
# dump with formating
|
# dump with formating
|
||||||
toml.dump(self.pkg_dict, f)
|
toml.dump(self.pkg_dict, f)
|
||||||
|
|
||||||
|
def findPackage(self, pkg_name:str):
|
||||||
|
for package in self.packages:
|
||||||
|
if package.name == pkg_name:
|
||||||
|
return package
|
||||||
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user