Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[critical] cpackget update-index does not fetch a new copy of the pdsc files in .Local #230

Open
jkrech opened this issue Dec 8, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jkrech
Copy link
Member

jkrech commented Dec 8, 2023

Describe the bug
cpackget does not support checking for updates of local packs.

To Reproduce
All packs that are not listed in the .Web/index.pidx are referred to as local packs. The initial installation of such a pack requires a fully qualified location when running cpackget add. During the installation, a copy of the pdsc file will be stored in the pack directory .Local. During the update of the package description files running cpackget update-index for each package description file in .Local cpackget shall attempt to copy the potentially updated pdsc file from the location specified by the <url> element in the pdsc file (origin).

 copy -f <url>/<vendor>.<name>.pdsc  $CMSIS_PACK_ROOT/.Local/

Steps to reproduce the behavior:

  1. create a pack with a packID that does not exist in the public index: ./Web/index.pidx
  2. specify a local <url> on the file system something like file:///c:/your_local_pack/repo
  3. place the pack and a copy of the pdsc in the <url> specified above
  4. run cpackget add <url>\packID.<version>.pack
  5. create a new pack version and update the pdsc located here <url>.
  6. run cpackget update-index
    => nothing happens

Expected behavior
=> the update pdsc file in <url> is copied into .Local having a new version in the section
As a consequence this new version could be installed running cpackget add <packID>.<version>
Note: during cpackget update-index a message

 I: <packID> can be upgraded from "a.b.c" to "a.b.d"

Environment (please complete the following information):

  • OS: all
  • Version: all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants