mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
nix path-info: Remove trailing spaces
Fixes #2390.
(cherry picked from commit b7409c5754)
This commit is contained in:
parent
b71789885a
commit
d2339af44c
1 changed files with 4 additions and 1 deletions
|
|
@ -78,7 +78,10 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
|
||||||
auto info = store->queryPathInfo(storePath);
|
auto info = store->queryPathInfo(storePath);
|
||||||
storePath = info->path; // FIXME: screws up padding
|
storePath = info->path; // FIXME: screws up padding
|
||||||
|
|
||||||
std::cout << storePath << std::string(std::max(0, (int) pathLen - (int) storePath.size()), ' ');
|
std::cout << storePath;
|
||||||
|
|
||||||
|
if (showSize || showClosureSize || showSigs)
|
||||||
|
std::cout << std::string(std::max(0, (int) pathLen - (int) storePath.size()), ' ');
|
||||||
|
|
||||||
if (showSize)
|
if (showSize)
|
||||||
std::cout << '\t' << std::setw(11) << info->narSize;
|
std::cout << '\t' << std::setw(11) << info->narSize;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue