From 9a55d4fe7c58cb884d3449bf16bb377da363b454 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Thu, 28 Mar 2024 12:47:07 +0800 Subject: [PATCH] Chore: [ALAS] Rename to list_known_packages --- module/device/connection.py | 4 ++-- module/device/platform/platform_windows.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/device/connection.py b/module/device/connection.py index e84c66946..2d29d0ab9 100644 --- a/module/device/connection.py +++ b/module/device/connection.py @@ -850,7 +850,7 @@ class Connection(ConnectionAttr): packages = re.findall(r'package:([^\s]+)', output) return packages - def list_azurlane_packages(self, show_log=True): + def list_known_packages(self, show_log=True): """ Args: show_log: @@ -867,7 +867,7 @@ class Connection(ConnectionAttr): Show all possible packages with the given keyword on this device. """ logger.hr('Detect package') - packages = self.list_azurlane_packages() + packages = self.list_known_packages() # Show packages logger.info(f'Here are the available packages in device "{self.serial}", ' diff --git a/module/device/platform/platform_windows.py b/module/device/platform/platform_windows.py index 36a58fb25..8c92e4cd0 100644 --- a/module/device/platform/platform_windows.py +++ b/module/device/platform/platform_windows.py @@ -267,7 +267,7 @@ class PlatformWindows(PlatformBase, EmulatorManager): show_ping(pong) # Check azuelane package - packages = self.list_azurlane_packages(show_log=False) + packages = self.list_known_packages(show_log=False) if len(packages): pass else: