On Mon, 15 Nov 2004, Christopher Faylor wrote: > On Tue, Nov 16, 2004 at 01:13:48AM -0000, Max Bowsher wrote: > >Igor Pechtchanski wrote: > >>Speaking of the order in which scripts are run (but unrelated to this > >>discussion): the logic that is supposed to invoke postinstall scripts in > >>topological order of dependencies doesn't seem to work -- instead of being > >>invoked when their respective packages are traversed, the postinstall > >>scripts are executed by the catch-all clause (and thus in alphabetical > >>order). > > > >Yuck. > > > >Does anyone know how rpm/deb handle this kind of issue? > > rpm does a topological sort based on dependencies. Some of the > dependencies are supplied in the rpm spec file, but many are derived by > an internal rpm algorithem which figures out requirements for things > like shared libraries and perl modules.
Setup already has the logic to do this topological sort -- sorry if that was unclear. What I meant was that the sort is done, but the scripts aren't invoked in the sorted order. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT