[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#703603: apt: gai_strerror is not always specific enough for "Something wicked happened" errors



On Thu, Mar 21, 2013 at 10:12:00AM +0000, Colin Watson wrote:
> Package: apt
> Version: 0.9.7.7
> Severity: normal
> Tags: patch
> User: ubuntu-devel@lists.ubuntu.com
> Usertags: origin-ubuntu ubuntu-patch raring

Hi Colin,

thanks for your bugreport and your patch!
 
> If gai_strerror returns EAI_SYSTEM, then the documentation indicates
> that the caller should check errno for details.  apt doesn't do this,
> and just prints something like "Something wicked happened resolving
> 'security.ubuntu.com:http' (-11 - System error)", which is rather less
> helpful than it might be and makes it difficult to debug problems after
> the fact.  Could you apply something like the following patch to provide
> more helpful output?
[..]

The patch looks good, I applied it to the debian branch and it will be
part of the next upload to experimental (due to the freeze otherwise
it would be debian/unstable).

Thanks,
 Michael


Reply to: