W dniu pią, 01.12.2017 o godzinie 12∶30 +0100, użytkownik Fabian Groffen napisał: > Hi, > > While trying to implement full tree Manifests for the Prefix tree, I ran > into the following: > > Would it be possible to add a section to define what directories receive > what kind of Manifest? > > I mean in particular what is encoded in gemato/profile.py, the metadata > directory is an interesting mix and match of subdirectories that have a > Manifest of their own, and subdirectories whose content is included in > the Manifest at the metadata level. > > More specifically, it seems like in the current GLEP it doesn't mention > what directories should have their own Manifest or not. It would be > good to know if for instance adding Manifest(.gz) to > metadata/install-qa-check.d is ok as per GLEP or not (and if so, the > consumer of that directory should be fixed to ignore the Manifest* > files, instead of barking it can't source the gz file or doesn't get > it).
It's on purpose, to allow us to create Manifests as we see a need for them. The GLEP permits every directory to have its own Manifest file. If some directory can't receive one, it's a limitation enforced by something else and tracking all of those does not really fit the purpose of this GLEP. > Also, what if someone would want to include all entries in the > top-level Manifest, would that be OK (albeit stupid I guess)? It is ok, albeit it will probably be quite slow and memory consuming when doing partial validation only. > I think it would be a good addition to specify (for a Gentoo tree) what > directories receive a Manifest file and what their content is. No, it wouldn't. It would add a lot of complexity and prevent us from doing minor modifications without having to update the GLEP. It is flexible by design, and it should stay that way. Furthermore, if we specified that then I'm pretty sure some people will decide it's written in stone and start writing stupid implementations that rely on presence of Manifest files in some directory and their absence in other. > In addition to this, because it is related, it would be nice to also > document the IGNORE entries that seem present at the top-level and > metadata-level, or specify where they would come from for the Gentoo > case. -- Best regards, Michał Górny