From 0f56fac29a345c7b99b9c10377b6b99a4f7843ed Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 21 May 2025 01:33:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20apt=20=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/config/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/config/util.ts b/back/config/util.ts index f51a5a7c..2686ea2d 100644 --- a/back/config/util.ts +++ b/back/config/util.ts @@ -521,7 +521,7 @@ export function getGetCommand(type: DependenceTypes, name: string): string { const baseCommands = { [DependenceTypes.nodejs]: `pnpm ls -g | grep "${name}" | head -1`, [DependenceTypes.python3]: `python3 -c "import sys, importlib.util; from importlib.metadata import version, PackageNotFoundError; m=sys.argv[1]; spec=importlib.util.find_spec(m); print(version(m) if spec and 'site-packages' in (spec.origin or '') else (m if spec else ''))" ${name}`, - [DependenceTypes.linux]: `apk info -es ${name}`, + [DependenceTypes.linux]: `apt-get info ${name}`, }; return baseCommands[type];