ARM-software / cmsis-pack-eclipse

CMSIS-Pack Eclipse Plug-ins
Other
66 stars 32 forks source link

<vindex> section in .vidx files ignored #66

Closed TTornblom closed 6 years ago

TTornblom commented 6 years ago

I've been looking at setting up a .vidx file to list vendor pack repos, and I have been unable to get the section to work.

I've used http://www.keil.com/pack/Keil.vidx to debug the issue, and the only packs that are listed in the plugin are the packs in the section, the vendor sites listed in the section appears to be ignored. I have verified that all listed vendors sites work.

Is this a bug/omission or have I misunderstood how it is supposed to work?

Looking at the specification at: https://www.keil.com/pack/doc/CMSIS/Pack/html/packIndexFile.html#vidxFile I think it is pretty clear that the section is only supposed to be used for vendors who have yet to migrate to the .pidx format used by the section.

jkrech commented 6 years ago

Hi Thomas, please take a look at the documentation here: https://www.keil.com/pack/doc/CMSIS/Pack/html/createPackPublish.html The way it is working is that the Pack Manager uses a "pre-compiled" flat list of latest pack description files (index.pidx). It is the tool-vendors choice where this list is taken from and who compiles it. The tools from Arm today use www.keil.com/pack/index.pidx This list is automatically updated once a day the web server. The update process reads the file www.keil.com/pack/Keil.vidx which contains both and tags. In case of tags the attributes are used to download a copy of the pdsc. The file is imported in case of a new version and the index.pidx updated accordingly. A tag represents a vendor pidx file, containing a list of files hosted and maintained by this vendor. In this case the importer first downloads the latest version of the pidx file and then iterates through all tags.

Once all pdsc files have been updated, the importer generates a new index.pidx file including the latest versions of pdsc files. The Pack Manager downloads the index.pidx and downloads those pdsc files which have a new version listed.

I do agree that the update functionality could be implemented within the Pack Manager, however having this done on the web server, avoids redundancy and unnecessary download of files.

Please let me know if you have further questions.

Regards,

Joachim

TTornblom commented 6 years ago

Thanks Joachim, this confirms my suspicion.

We also have a process in place that once a day builds an index.idx file, although currently I manually update the file on our web, just to make sure that there are no surprises for non working packs.

Cheers, Thomas