FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

LinkBack Thread Tools
Old 02-09-2012, 03:41 AM
Nagy Gabor
Default Give informative error message when the to-be-downloaded file cannot be created

> >
> > Unfortunately, the "failed to create file" error message is printed for
> > every mirror (that can be dozens of lines), which is ugly, but at least
> > informative... Without modifying the download logic (for example, by
> > introducing -2 return value for _alpm_download() to indicate giving up),
> > this ugliness cannot be eliminated.
> I'm all for modifying the download logic in this fashion.

OK. But not today :-). Then some other cases can also get retval -2, so
we can eliminate some other pointless retries for every mirrors.

> Not a huge fan of the phrasing of this message. In most cases, I'd
> rather the filename or variable part of the message be at the front or
> the end, not in the middle. Perhaps
> _("could not open file '%s': %s
"), tempfile_name, strerror(errno))

OK, done in my working branch:


Thread Tools

All times are GMT. The time now is 05:06 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org