修复linux包无法检测

This commit is contained in:
dream10201 2023-08-18 12:52:52 +08:00 committed by GitHub
parent d62e1576af
commit a9bda4fc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,7 @@ export default class DependenceService {
if ( if (
depInfo && depInfo &&
((isNodeDependence && depInfo.split(' ')?.[0] === depName) || ((isNodeDependence && depInfo.split(' ')?.[0] === depName) ||
(isLinuxDependence && depInfo.toLocaleLowerCase().includes('installed')) || (isLinuxDependence && depInfo.toLocaleLowerCase().includes('apt-manual-installed')) ||
isPythonDependence) && isPythonDependence) &&
(!depVersion || depInfo.includes(depVersion)) (!depVersion || depInfo.includes(depVersion))
) { ) {