Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   Give informative error message when the to-be-downloaded file cannot be created (http://www.linux-archive.org/archlinux-pacman-development/630566-give-informative-error-message-when-downloaded-file-cannot-created.html)

Nagy Gabor 02-09-2012 03:41 AM

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:
http://repo.or.cz/w/pacman-ng.git/shortlog/refs/heads/working

NG


All times are GMT. The time now is 03:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.