[pacman-dev] [PATCH] Added the --bell switch.

Andrew Gregory andrew.gregory.8 at gmail.com
Fri Jan 15 03:30:06 UTC 2016


On 01/11/16 at 12:32am, Eric Toombs wrote:
> That's a pretty good improvement, but there is also a long delay while
> pacman calculates dependencies for large upgrades. You might say that
> could be avoided by upgrading more frequently, but it is my style and
> the style of many others to opt for large monthly upgrades over small
> weekly or daily upgrades. I'll try formatting the patch again with git
> send-email.

Dependency calculation should be very fast.  I suspect that the delay
you're seeing is actually just pacman reading information from the
local database.  If that's the case, just loading the local db before
the bell should give you the desired effect:

 pacman -Sy && pacman -Sup >/dev/null && printf "\a" && pacman -Su

pacman-optimize may also be able to improve the speed of reading your
local database.

apg

> On 2015-12-14 12:12, Andrew Gregory wrote:
> > On 11/19/15 at 07:09am, Eric Toombs wrote:
> >> This switch rings the terminal bell when user input is required.
> >> Obviously, it has no effect if --noconfirm is also passed.
> >> ---
> > If your only interest in this is to get a notification when downloads
> > are done because you have a slow connection, wouldn't a small wrapper
> > script accomplish the same goal?
> >
> >  pacman -Sy && printf "\a" && pacman -Su
> >
> > This patch also appears to have some mangled whitespace.  Please use
> > `git send-email` to submit patches.
> >
> > apg


More information about the pacman-dev mailing list