Yay: network issues should be stderr

Created on 21 Sep 2018  路  4Comments  路  Source: Jguer/yay

Affected Version

yay v8.1115 - libalpm v11.0.1

Issue

I would like to do something like yay -Qu | wc -l to show a number of updates.

The problem is that this command doesn't work properly if I don't have an internet connection. It fails with Get .... Temporary failure in name resolution.

The solution for other AUR helpers is to set the quiet flag, or drop the error logs with 2>. A similar solution under yay would be useful.

Enhancement

Most helpful comment

Everything is on stdout at the moment. Correctly splitting output between the streams is something I've been meaning to do.

All 4 comments

Everything is on stdout at the moment. Correctly splitting output between the streams is something I've been meaning to do.

Is this hard to achieve?

It's not hard per se but it does involve going through every single print statment and making sure it's doing the right thing. And changing all that code then makes conflicts for anything else being developed at the same time. So I'll at least wait on the config changes to be finished before hand.

Ping me if you would like help cleaning this up after the config changes are landed... I have some free time on my hands

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Zeioth picture Zeioth  路  3Comments

captn3m0 picture captn3m0  路  4Comments

makeworld-the-better-one picture makeworld-the-better-one  路  3Comments

Qyriad picture Qyriad  路  4Comments

renom picture renom  路  3Comments