On Fri, Jun 22, Lukas Ocilka wrote:
One of the main solutions of $this feature is the unification with Add-Ons and their workflows. Please, read the article mentioned in this thread first. There is only a little difference between Add-On and Pattern workflows.
Yes, and that's a pretty good idea.
That way, neither Pattern metadata generation (abuild), nor Pattern parsing (zypp), nor the cache database (zypp), are affected.
I can't see the point here. Patterns needs to be generated anyway, Pattern workflow as well.
Add-On and Pattern workflows have the very same format as control.xml file - they can change every single feature that control.xml defines. Cache database is affected only when some workflow is added - not changed. Workflow files are downloaded using Pkg::SourceProvide(Optional)File().
If a workflow changes, it's checksum changes. So you have to update the pattern file (in case it stores the workflows checksum), and the the content file (because the pattern checksum changed). But I actually don't mind the refresh changed workflow data might cause. I dislike the coupling. Changes to those workflow related metadata will affect the pattern parsers, the pattern interface and even the cache database layout. (as you had to store workflow related matadata in the DB). You can't simply change or extend your data, without touching all, these locations. And vice versa all these locations will become responsible for not disturbing your feature, in case of changes. You plan to touch almost everything for something we could as well handle locally.
Actually, I could really omit using libzypp and create a file that links patterns with a specific workflow and its presentation order ... but
The point here is not omiting libzypp, the point is not abusing the pattern matadata to ship yasts workflow data. This does not require everything to be hacked in YCP. The required code could go into pkg_bindings (or even zypp if more apps than YaST are able to use the xml files). -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org