diff options
author | Harald van Dijk <harald@gigawatt.nl> | 2019-11-03T21·46+0000 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-01-04T12·40+0100 |
commit | 61855a4e7bbaeb26de5a73040d87c28944e76b13 (patch) | |
tree | b562d07c5cffac615d0b0fd0764ae38e68340f1d /src/nix-daemon/nix-daemon.cc | |
parent | 9b4e99801f26e985b6fd61ee1e8154c30cc5efa1 (diff) |
Fix progress bar when nix-prefetch-url is piped.
The intent of the code was that if the window size cannot be determined, it would be treated as having the maximum possible size. Because of a missing assignment, it was actually treated as having a width of 0. The reason the width could not be determined was because it was obtained from stdout, not stderr, even though the printing was done to stderr. This commit addresses both issues. (cherry picked from commit c935ad3f025d5c3d8026711a1eb50b2917b61d59)
Diffstat (limited to 'src/nix-daemon/nix-daemon.cc')
0 files changed, 0 insertions, 0 deletions