RPM

Comment 67 for bug 913230

Revision history for this message
In , 4-alien (4-alien) wrote :

i'll try to put a detailed list of what i think is happening and how it should be fixed:

the fix should be in the perl urpm/*.pm somewhere.

IIUC, this is what happens now (wrt updates):

1. at some point media is being evaluated:
2. all active media are marked as searchmedia
3. later in the code, (only for updates), i think some kind of ignore function is called for all media that isn't marked as update.

i think the fix should be in the part that decides for which media to call this ignore function.

specifically, an option in the media.cfg is loaded in a distribconf object (updates_for). this option is only set for update media (normally). the idea is that the following:

for each media (in that loop that would ignore a media for searching), check if that media is mentioned in one of the update media in the updates_for function. if it's in there, then don't call that ignore.

i hope someone can fix this one sooner rather than later though