Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unmerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Tue Apr 23, 2002 4:17 pm    Post subject: unmerge Reply with quote

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
View user's profile Send private message
static
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 141
Location: Canada

PostPosted: Tue Apr 23, 2002 5:56 pm    Post subject: Reply with quote

Because that means checking the dependancies of EVERYTHING on the system!
_________________
Gentoo and Doom III. 'Nuff Said.
_______________________________________
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Tue Apr 23, 2002 6:38 pm    Post subject: of course Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum