@whyour/qinglong 2.17.12-rc.1 → 2.17.12-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -560,7 +560,7 @@ async function _updateLinuxMirror(osType, mirrorDomainWithScheme) {
|
|
|
560
560
|
let filePath, currentDomainWithScheme;
|
|
561
561
|
switch (osType) {
|
|
562
562
|
case 'Debian':
|
|
563
|
-
filePath = '/etc/apt/sources.list';
|
|
563
|
+
filePath = '/etc/apt/sources.list.d/debian.sources';
|
|
564
564
|
currentDomainWithScheme = await getCurrentMirrorDomain(filePath);
|
|
565
565
|
if (currentDomainWithScheme) {
|
|
566
566
|
await replaceDomainInFile(filePath, currentDomainWithScheme, mirrorDomainWithScheme || 'http://deb.debian.org');
|
|
@@ -570,7 +570,7 @@ async function _updateLinuxMirror(osType, mirrorDomainWithScheme) {
|
|
|
570
570
|
throw Error(`Current mirror domain not found.`);
|
|
571
571
|
}
|
|
572
572
|
case 'Ubuntu':
|
|
573
|
-
filePath = '/etc/apt/sources.list';
|
|
573
|
+
filePath = '/etc/apt/sources.list.d/ubuntu.sources';
|
|
574
574
|
currentDomainWithScheme = await getCurrentMirrorDomain(filePath);
|
|
575
575
|
if (currentDomainWithScheme) {
|
|
576
576
|
await replaceDomainInFile(filePath, currentDomainWithScheme, mirrorDomainWithScheme || 'http://archive.ubuntu.com');
|
|
@@ -180,13 +180,13 @@ let DependenceService = class DependenceService {
|
|
|
180
180
|
const isPythonDependence = dependency.type === dependence_1.DependenceTypes.python3;
|
|
181
181
|
const osType = await (0, util_2.detectOS)();
|
|
182
182
|
let linuxCommand = {};
|
|
183
|
+
pLimit_1.default.removeQueuedDependency(dependency);
|
|
183
184
|
if (isLinuxDependence) {
|
|
184
185
|
if (!osType) {
|
|
185
186
|
return resolve(null);
|
|
186
187
|
}
|
|
187
188
|
linuxCommand = const_1.LINUX_DEPENDENCE_COMMAND[osType];
|
|
188
189
|
}
|
|
189
|
-
pLimit_1.default.removeQueuedDependency(dependency);
|
|
190
190
|
const depIds = [dependency.id];
|
|
191
191
|
const status = isInstall
|
|
192
192
|
? dependence_1.DependenceStatus.installing
|