@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
- if (!(await commandExists('dpkg')))
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
- if (!(await commandExists('rpm')))
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-audio-stack/core",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
4
4
  "description": "Open-source audio plugin management software",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",