Chore: [ALAS] Rename to list_known_packages

This commit is contained in:
LmeSzinc 2024-03-28 12:47:07 +08:00
parent 9fe20e993c
commit 9a55d4fe7c
2 changed files with 3 additions and 3 deletions

View File

@ -850,7 +850,7 @@ class Connection(ConnectionAttr):
packages = re.findall(r'package:([^\s]+)', output) packages = re.findall(r'package:([^\s]+)', output)
return packages return packages
def list_azurlane_packages(self, show_log=True): def list_known_packages(self, show_log=True):
""" """
Args: Args:
show_log: show_log:
@ -867,7 +867,7 @@ class Connection(ConnectionAttr):
Show all possible packages with the given keyword on this device. Show all possible packages with the given keyword on this device.
""" """
logger.hr('Detect package') logger.hr('Detect package')
packages = self.list_azurlane_packages() packages = self.list_known_packages()
# Show packages # Show packages
logger.info(f'Here are the available packages in device "{self.serial}", ' logger.info(f'Here are the available packages in device "{self.serial}", '

View File

@ -267,7 +267,7 @@ class PlatformWindows(PlatformBase, EmulatorManager):
show_ping(pong) show_ping(pong)
# Check azuelane package # Check azuelane package
packages = self.list_azurlane_packages(show_log=False) packages = self.list_known_packages(show_log=False)
if len(packages): if len(packages):
pass pass
else: else: