mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-04 09:06:06 +08:00
修复取消安装依赖
This commit is contained in:
parent
1d8403c0ec
commit
7a92e7c6ab
|
@ -163,11 +163,9 @@ export default class DependenceService {
|
|||
taskLimit.removeQueuedDependency(doc);
|
||||
const depInstallCommand = getInstallCommand(doc.type, doc.name);
|
||||
const depUnInstallCommand = getUninstallCommand(doc.type, doc.name);
|
||||
const installCmd = `${depInstallCommand} ${doc.name.trim()}`;
|
||||
const unInstallCmd = `${depUnInstallCommand} ${doc.name.trim()}`;
|
||||
const pids = await Promise.all([
|
||||
getPid(installCmd),
|
||||
getPid(unInstallCmd),
|
||||
getPid(depInstallCommand),
|
||||
getPid(depUnInstallCommand),
|
||||
]);
|
||||
for (const pid of pids) {
|
||||
pid && (await killTask(pid));
|
||||
|
|
Loading…
Reference in New Issue
Block a user