Open-CMSIS-Pack / cpackget

Open-CMSIS-Pack Package Installer
Apache License 2.0
24 stars 15 forks source link

[cpackget] Does not install required packs when a previous version of a required pack is already present #386

Open ReinhardKeil opened 1 week ago

ReinhardKeil commented 1 week ago

Describe the bug

cpackget fails to install a required pack with a higher version when a previous pack version is already installed.

To Reproduce

pack Keil::STM32F746G-DISCO_BSP@1.0.0 contains a requirement to Keil::STM32F7xx_DFP@3.0.0

  <requirements>
    <packages>
      <package vendor="Keil" name="STM32F7xx_DFP"      version="3.0.0-0"/>

But when the pack Keil::STM32F7xx_DFP@2.16.0 is already installed, this pack is not downloaded and installed.

Steps to reproduce the behavior:

  1. cpackget add Keil::STM32F7xx_DFP@2.16.0
  2. cpackget add Keil::STM32F746G-DISCO_BSP@1.0.0

Observe that Keil::STM32F7xx_DFP@3.0.0 is not getting installed. This is different when Keil::STM32F7xx_DFP@2.16.0 is missing.

Expected behavior

The pack Keil::STM32F7xx_DFP@3.0.0 should be always installed.

Environment: