[pacman-dev] [PATCH] Add ShowOldVersion Option

Justin Lampley jrlampley at gmail.com
Wed Nov 14 10:09:18 EST 2007


Roman Kyrylych wrote:
> I suggest this:
>
> Remove: lib32-gcc
>
> Total Removed Size:   0.00 MB
>
> Targets:
>         lib32-gcc-libs-4.2.2-2  [New]  1.05 MB
>         audacious-player-1.4.0-1  [1.3.2-4]  1.07 MB
>         audacious-plugins-1.4.0-2  [1.3.5-5.1]  1.68 MB
>         eclipse-pydev-1.3.10-1  [1.3.9-1]  3.39 MB
>         fakeroot-1.8.4-1  [1.7.1-3]  0.06 MB
>         glibc-2.7-6  [2.7-4]  10.78 MB
>         glproto-1.4.9-1  [1.4.8-1]  0.02 MB
>         hal-info-0.20071030-1  [0.20071011-1]  0.03 MB
>         imagemagick-6.3.6.10-1  [6.3.6.6-1]  2.30 MB
>         lib32-glibc-2.7-5  [2.6.1-2]  3.64 MB
>         libarchive-2.4.0-1  [2.2.6-2]  0.32 MB
>         libgphoto2-2.4.0-2  [2.3.1-3]  1.36 MB
>         libmcs-0.6.0-1  [0.4.1-2]  0.02 MB
>         libsamplerate-0.1.2-4  [0.1.2-3]  0.20 MB
>         lincity-ng-1.1.2-1  [1.1.1-1]  29.16 MB
>         lm_sensors-2.10.5-2  [2.10.5-1]  0.32 MB
>         tcl-8.4.16-2  [8.4.16-1]  1.63 MB
>         tk-8.4.16-2  [8.4.16-1]  1.40 MB
>         ttf-dejavu-2.21-1  [2.20-1]  3.79 MB
>         xf86-video-ati-6.7.195-3  [6.7.195-1]  3.67 MB
>         xorg-server-1.4-5  [1.4-4]  7.25 MB
>         xpdf-3.02_pl2-1  [3.02_pl1-1]  0.49 MB
>
> Total Download Size:    73.64 MB
> Total Installed Size:   91.08 MB
>
> Every package is printed on a new line, pkgname-pkgver-pkgrel, old
> pkgver-pkgname and size are separated with 2 spaces.
>
>   
I was also thinking about using a very similar format to this when I 
initially created
this patch.  The reason I did not initially put it in a format like this 
is because I wanted
to leave alone the way things were currently displayed and just add in 
the old version.

If I use this format, a couple of questions pop into my mind.
What would happen if they just wanted to only enable ShowSize?  Would it 
use the old
format with the size in brackets and no separate line for each package?
Would the above format only be used if both ShowSize and ShowOldVersion 
were enabled?
What if only ShowOldVersion was enabled? Would each package be on its 
own line then as well?

I personally would prefer each package to always appear on its own line, 
whether or not ShowSize
and/or ShowOldVersion were set to display.  Of course, I am sure others 
would disagree with me
since that is not the way it is currently set up.


Justin Lampley




More information about the pacman-dev mailing list