View previous topic :: View next topic |
Author |
Message |
proxy Apprentice
Joined: 20 Apr 2002 Posts: 260 Location: Chantilly, VA
|
Posted: Tue Apr 23, 2002 4:17 pm Post subject: unmerge |
|
|
Just out of curiosity, i keep seeing how people say that they "broke" package B by uninstalling package A which B depends on. Why are dependancies not checked on uninstalation?
PrOxY |
|
Back to top |
|
|
static Tux's lil' helper
Joined: 18 Apr 2002 Posts: 141 Location: Canada
|
Posted: Tue Apr 23, 2002 5:56 pm Post subject: |
|
|
Because that means checking the dependancies of EVERYTHING on the system! _________________ Gentoo and Doom III. 'Nuff Said.
_______________________________________ |
|
Back to top |
|
|
proxy Apprentice
Joined: 20 Apr 2002 Posts: 260 Location: Chantilly, VA
|
Posted: Tue Apr 23, 2002 6:38 pm Post subject: of course |
|
|
of course it would, other package systems do this, so it is obviously doable. It is just a matter of the data structure you store your information in. An oversimplified solution would be to organize the data in a "dependancy tree" packages that depend on another would be child nodes of that package. Then to check if there is a dependancy problem, you would simply traverse to the package in question. Then recursivly check if any child nodes are installed. The area which this is over simplified is when packages have many dependancies that cross over each other and the like....but it is doable, and really should be looked into.
PrOxY |
|
Back to top |
|
|
|