@open-audio-stack/core 0.1.43 → 0.1.44
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.
|
@@ -178,10 +178,18 @@ export class ManagerLocal extends Manager {
|
|
|
178
178
|
const excludedFormats = [];
|
|
179
179
|
const system = getSystem();
|
|
180
180
|
if (system === SystemType.Linux) {
|
|
181
|
-
|
|
181
|
+
const hasDpkg = await commandExists('dpkg');
|
|
182
|
+
const hasRpm = await commandExists('rpm');
|
|
183
|
+
// If both exist, prefer DEB over RPM
|
|
184
|
+
if (hasDpkg && hasRpm) {
|
|
185
|
+
excludedFormats.push(FileFormat.RedHatPackage);
|
|
186
|
+
}
|
|
187
|
+
else if (!hasDpkg) {
|
|
182
188
|
excludedFormats.push(FileFormat.DebianPackage);
|
|
183
|
-
|
|
189
|
+
}
|
|
190
|
+
else if (!hasRpm) {
|
|
184
191
|
excludedFormats.push(FileFormat.RedHatPackage);
|
|
192
|
+
}
|
|
185
193
|
}
|
|
186
194
|
const files = packageCompatibleFiles(pkgVersion, [getArchitecture()], [getSystem()], excludedFormats);
|
|
187
195
|
if (!files.length)
|