On Thu, 26 Jul 2007, James Antill wrote:
On Thu, 2007-07-26 at 10:41 -0400, Jeremy Katz wrote:
Per a suggestion on fedora-devel-list from Hans de Goede, the following
makes it so that we don't immediately exit on the command line if the
lock is held by another process. Instead, we spin checking every two
seconds to see if the lock has been released. This helps in the case
where, eg, yum-updatesd is downloading metadata so that you don't have
to guess when it's done. And if you don't want to wait, ctrl-c exits
immediately.
Other opinions/thoughts?
One of the places I'd often like something like this is what I want to
install something but have just ask yum to install something else, or do
an update. So from that point of view I don't think 2 seconds is a good
number, esp. given the message being printed out all the time.
Power of 2 backoff upto a limit seems pretty easy to do. Updated patch
attached.
I think the problem is not the 2 second period, but the message being
printed out all the time. Print the message once, and the command can sit
and wait until it can do its job, or until the user loses patience and
types ^C. If the lock never becomes available, then that's a problem with
some other software, not this instance.
I don't see any added value in printing the message multiple times.
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel