[pacman-dev] [PATCH] Added the --bell switch.
ewtoombs at uwaterloo.ca
Sun Jan 17 10:00:23 UTC 2016
So perhaps the switch isn't strictly necessary, but it's much easier to
use. Your method requires knowledge of how pacman is implemented and
could change as pacman's implementation is changed. I'd definitely
rather use the --bell switch I implemented.
On 2016-01-14 22:30, Andrew Gregory wrote:
> 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
> 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.
>> 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.
More information about the pacman-dev