[pacman-dev] Redundant spaces in package information.
Hi there. I have noticed that pacman package information output has a redundant spaces. Let me show you an example. $ pacman -Qi pacman | grep Install Installed Size : 3.95 MiB Install Date : Tue 27 Oct 2015 03:46:31 PM EET Install Reason : Explicitly installed Install Script : No [vchimishuk@latitude pixel-submitter] $ As you can most of lines have only one space after ':' character, but "Installed Size" has three spaces. It depends of the size value itself. Here is a code that prints the line: printf("%s%s%s %6.2f %s\n", config->colstr.title, titles[T_INSTALLED_SIZE], config->colstr.nocolor, size, label); My question is next. Why do we need "6." here? It will works just fine without this extra space formatting. Is this is a bug or feature? :) Best regards, Viacheslav.
On 21.01.2016 12:15, Viacheslav Chimishuk wrote:
I have noticed that pacman package information output has a redundant spaces. Let me show you an example.
$ pacman -Qi pacman | grep Install Installed Size : 3.95 MiB Install Date : Tue 27 Oct 2015 03:46:31 PM EET Install Reason : Explicitly installed Install Script : No
IIRC this has been fixed in the upcoming pacman 5.0. S
I did not run v5.0, but as I can see from master's top it seems to be still there... 21.01.2016, 13:28, "Stefan Tatschner" <rumpelsepp@sevenbyte.org>:
On 21.01.2016 12:15, Viacheslav Chimishuk wrote:
I have noticed that pacman package information output has a redundant spaces. Let me show you an example.
$ pacman -Qi pacman | grep Install Installed Size : 3.95 MiB Install Date : Tue 27 Oct 2015 03:46:31 PM EET Install Reason : Explicitly installed Install Script : No
IIRC this has been fixed in the upcoming pacman 5.0.
S
On 21/01/16 21:28, Stefan Tatschner wrote:
On 21.01.2016 12:15, Viacheslav Chimishuk wrote:
I have noticed that pacman package information output has a redundant spaces. Let me show you an example.
$ pacman -Qi pacman | grep Install Installed Size : 3.95 MiB Install Date : Tue 27 Oct 2015 03:46:31 PM EET Install Reason : Explicitly installed Install Script : No
IIRC this has been fixed in the upcoming pacman 5.0.
Looks like it was fixed in -Si but not -Qi. A
But how can it be possible if both -Si and -Qi call the same function dump_pkg_full (from package.c file)? Best regards, Viacheslav. 21.01.2016, 13:41, "Allan McRae" <allan@archlinux.org>:
On 21/01/16 21:28, Stefan Tatschner wrote:
On 21.01.2016 12:15, Viacheslav Chimishuk wrote:
I have noticed that pacman package information output has a redundant spaces. Let me show you an example.
$ pacman -Qi pacman | grep Install Installed Size : 3.95 MiB Install Date : Tue 27 Oct 2015 03:46:31 PM EET Install Reason : Explicitly installed Install Script : No
IIRC this has been fixed in the upcoming pacman 5.0.
Looks like it was fixed in -Si but not -Qi.
A
On 21/01/16 23:03, Viacheslav Chimishuk wrote:
But how can it be possible if both -Si and -Qi call the same function dump_pkg_full (from package.c file)?
Please stop top posting. Here was the earlier discussion: https://lists.archlinux.org/pipermail/pacman-dev/2015-April/020061.html Seems the patch I requested was never submitted so this was never fixed. A
participants (3)
-
Allan McRae
-
Stefan Tatschner
-
Viacheslav Chimishuk