mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
fix: handle cold dev startup and versioned dependency removal
This commit is contained in:
1 parent
a65d56a980
commit
0841e4e134
6 files changed
+211
-17
No files matched your search
@@ -315,7 +315,7 @@ export default class DependenceService {
|
||||
}
|
||||
const linuxCommand = LINUX_DEPENDENCE_COMMAND[osType];
|
||||
depInstallCommand = `${linuxCommand.install} ${doc.name.trim()}`;
|
||||
depUnInstallCommand = `${linuxCommand.uninstall} ${doc.name.trim()}`;
|
||||
depUnInstallCommand = getUninstallCommand(doc.type, doc.name, osType);
|
||||
}
|
||||
const pids = await Promise.all([
|
||||
getPid(depInstallCommand),
|
||||
@@ -442,7 +442,7 @@ export default class DependenceService {
|
||||
if (isLinuxDependence) {
|
||||
command = isInstall
|
||||
? `${linuxCommand.install} ${depName.trim()}`
|
||||
: `${linuxCommand.uninstall} ${depName.trim()}`;
|
||||
: getUninstallCommand(dependency.type, depName, osType);
|
||||
}
|
||||
const startTime = dayjs();
|
||||
|
||||
|
||||
Reference in new issue
Block a user