It strike me that if "yum" gets a 404 HTTP error when trying to get a repo list from a mirror, it oughtn't to spew out masses of gibberish at the user unless it was being deliberately run in some verbose/debugging mode. It ought to just change to another mirror, at that point, with a short sensible explanation to the user watching the output. Likewise for forbidden/denied HTTP errors.
e.g. HTTP access error (404), trying another mirror.
At the moment it blithely ignores error messages, and attempts to parse whatever's presented along with the error code as if it were the repo XML data file. I imagine that there's some potential for a bigger problem, than just seeing annoying text scroll past, if it pays no attention to error messages from the web server.
On Tuesday 31 January 2006 07:43, Tim wrote:
It ought to just change to another mirror, at that point, with a short sensible explanation to the user watching the output. Likewise for forbidden/denied HTTP errors.
e.g. HTTP access error (404), trying another mirror.
At the moment it blithely ignores error messages, and attempts to parse whatever's presented along with the error code as if it were the repo XML data file.
I'm not sure what you're referring to, perhaps this is an FC4/FC5 thing? On FC1/FC3 the simple error message you refer to is about all that's displayed and yum moves on to the next randomly picked server. I've never noticed anything even remotely annoying on a 404 error as far as I can recall.
Regards, Mike Klinke
Tim:
It ought to just change to another mirror, at that point, with short sensible explanation to the user watching the output. Likewise for forbidden/denied HTTP errors.
e.g. HTTP access error (404), trying another mirror.
At the moment it blithely ignores error messages, and attempts to parse whatever's presented along with the error code as if it were the repo XML data file.
Mike Klinke:
I'm not sure what you're referring to, perhaps this is an FC4/FC5 thing?
Yes, sorry, I really should have specified I was using FC4.
On FC1/FC3 the simple error message you refer to is about all that's displayed and yum moves on to the next randomly picked server. I've never noticed anything even remotely annoying on a 404 error as far as I can recall.
What you'll see is a whole slew of parsing error messages. There's quite a few examples of them in messages posted on this list. For that reason, I didn't bother to provide an example, and I don't know when I'll get another to post a sample, now.