[pacman-dev] [PATCH] Added the --bell switch.
andrew.gregory.8 at gmail.com
Sun Jan 17 15:00:43 UTC 2016
On 01/17/16 at 05:00am, Eric Toombs wrote:
> 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.
I don't think this is an unreasonable feature request so I don't mind
if Allan wants to accept it, but as far as I can tell you are the only
one interested in it. Personally, I'm not inclined to add features
when the desired effect can already be achieved using existing
features and only one person seems want it.
I'm not sure what implementation knowledge you think this requires.
All the script does is split the download and upgrade steps and
pre-read the localdb so that the actual upgrade won't be reading it
> 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
> >> 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