On Fri, Jun 22, Lukas Ocilka wrote:
Duncan Mac-Vicar Prett wrote:
On Friday 22 June 2007 15:54:27 Lukas Ocilka wrote:
Workflow for packages was never wanted and might be added later. Currently we support only Add-Ons Products and Patterns.
So we do it in a hacky way resolvable kind per resolvable kind. What will you do when we have to support it with packages?
It's actually not a "hacky" way, but the "way of minimal changes". What I wanted was a minimal change to libzypp and pkg-bindings just to have the wanted feature.
IMO "No": it's not the "way of minimal changes" You already have the workflow xml, the workflow is extensible, the only thing left is: When to execute which workflow? - Provide an index file mapping 'workflow->selection'. - Instead of looping through the patterns to be installed, and asking them for an associated workflow, loop through the patterns to be installed, and look whether they appear in your workflow index. That way, neither Pattern metadata generation (abuild), nor Pattern parsing (zypp), nor the cache database (zypp), are affected. And you can extend your feature anytime, without affecting abuild/zypp. Yes, you need one parser for your index file, but thas's IMO cheaper than the current plan. -- 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