VerbosePkgLists, size strings, manpage
Hi,
these patches add a VerbosePkgLists option to pacman.conf which applies to install, upgrade and remove operations and produces the following example output: Targets (25): Pkg Name New Version Old Version Size asciidoc 8.6.4-1 8.6.3-1 0.15 MB chromium 9.0.597.94-2 9.0.597.94-1 17.80 MB ... wine 1.3.14-1 1.3.13-2 24.67 MB Total Download Size: 158.41 MB Total Installed Size: 693.05 MB While the output is identical to Justin Lampley's patch from March 2008 (posted here: https://bugs.archlinux.org/task/15772), the table_display function in these patches should be simpler to use. I also consolidated size to string conversions (hope I got most of them) and made a few minor adjustments to the pacman manpage. |
VerbosePkgLists, size strings, manpage
This is a multi-part message in MIME format.
On 02/21/2011 08:02 PM, Jakob Gruber wrote: Hi, these patches add a VerbosePkgLists option to pacman.conf which applies to install, upgrade and remove operations and produces the following example output: Targets (25): Pkg Name New Version Old Version Size asciidoc 8.6.4-1 8.6.3-1 0.15 MB chromium 9.0.597.94-2 9.0.597.94-1 17.80 MB ... wine 1.3.14-1 1.3.13-2 24.67 MB Total Download Size: 158.41 MB Total Installed Size: 693.05 MB While the output is identical to Justin Lampley's patch from March 2008 (posted here: https://bugs.archlinux.org/task/15772), the table_display function in these patches should be simpler to use. I also consolidated size to string conversions (hope I got most of them) and made a few minor adjustments to the pacman manpage. Messed up a line while rebasing, the fixed patches are attached and https://github.com/schuay/pacman-arch/commits/working is updated. The only change is a one line fix: - pm_asprintf(&str, title, alpm_list_count(targets)); + pm_asprintf(&str, title, alpm_list_count(pkgs)); |
VerbosePkgLists, size strings, manpage
Fixed in error when computing download eta, my working branch is
updated: https://github.com/schuay/pacman-arch/commits/working Changed: diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 8ec4c3e..5a96a54 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -570,7 +570,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total) rate = (xfered - xfered_last) / timediff; /* average rate to reduce jumpiness */ rate = (rate + 2 * rate_last) / 3; - eta_s = (total - xfered) / (rate * 1024.0 * 1024.0); + eta_s = (total - xfered) / rate; rate_last = rate; xfered_last = xfered; } |
VerbosePkgLists, size strings, manpage
Hi guys,
any news on these patches? I've been running them for 2 months now without issues. Jakob |
VerbosePkgLists, size strings, manpage
On Mon, Apr 18, 2011 at 3:09 PM, Jakob Gruber <jakob.gruber@gmail.com> wrote:
> Hi guys, > > any news on these patches? I've been running them for 2 months now without > issues. Merged with some minor changes this evening. -Dan |
| All times are GMT. The time now is 11:01 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.