[zypp-devel] Integration of components
I have been thinking how to do what is the most difficult part, und this is integrating the pieces together so they make some sense, so then we can have something working that makes much easier to fill the mssing parts The problem is, breaking one piece while we adapt the others. Proposal, not perfect but I think it is at least doable: - Reimplement from scratch -> SourceFactory, SourceManager, Source and SourceImpl as Repository* That way there will be 2 ways of managing the sources. This will not break old apps. The only caveat (tip by Michael), is to make resolvables have a link to _either_ a Source or a new Repository, basically, both, just to make it work (old commit will use source, new commit use the repository info, only info as sources dont handle media anymore) Then we can fork zypper and try to make it work with cached sources, but the old programs still work, until we port all, and then we remove the old classes. what do you think? -- Duncan Mac-Vicar Prett Novell :: SUSE R&D, Maxfeldstr. 5, 90409 Nürnberg GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
I am supposed to be working on SourceManager (see parent mail in the thread) but I have done nothing yet because of working on SLE10 SP1, sorry. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
* Duncan Mac-Vicar Prett <dmacvicar@suse.de> [Apr 24. 2007 16:53]:
I have been thinking how to do what is the most difficult part, und this is integrating the pieces together so they make some sense, so then we can have something working that makes much easier to fill the mssing parts
The problem is, breaking one piece while we adapt the others.
Proposal, not perfect but I think it is at least doable:
- Reimplement from scratch -> SourceFactory, SourceManager, Source and SourceImpl as Repository*
We should investigate here and get a better feeling on the effort involved.
That way there will be 2 ways of managing the sources. This will not break old apps. The only caveat (tip by Michael), is to make resolvables have a link to _either_ a Source or a new Repository, basically, both, just to make it work (old commit will use source, new commit use the repository info, only info as sources dont handle media anymore)
Then we can fork zypper and try to make it work with cached sources, but the old programs still work, until we port all, and then we remove the old classes.
what do you think?
I think doing gradual changes and keep old programs still working is a very good approach. Klaus -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (3)
-
Duncan Mac-Vicar Prett
-
Klaus Kaempf
-
Martin Vidner