Open-CMSIS-Pack / cpackget

Open-CMSIS-Pack Package Installer
Apache License 2.0
20 stars 13 forks source link

cpackget rm does not work for local packs #269

Open ReinhardKeil opened 6 months ago

ReinhardKeil commented 6 months ago

Describe the bug Cannot remove a local pack, despite the fact that it is mentioned that it works in cpackget rm --help.

To Reproduce Use https://github.com/Open-CMSIS-Pack/DFP-Pack-HandsOn and execute:

cpackget add ACME.ACMECM4_DFP.pdsc
cpackget rm ACME::ACMECM4_DFP@1.0.0

Environment:

jkrech commented 6 months ago

The above command cpackget add ACME.ACMECM4_DFP.pdsc requires that the current directory is where the pdsc file is located. Note that this command adds the pdsc file to the $CMSIS_PACK_ROOT/.Local/local_repository.pidx file. In order to remove the pdsc file from the local_repository.pidx file you also need to specify the pdsc file rather than the packID.

cpackget rm ACME.ACMECM4_DFP.pdsc
ReinhardKeil commented 6 months ago

@jkrech I can confirm that above syntax works. Could you change the label to "documentation" + "future improvement" (sorry have no rights).