[Aptitude-svn-commit] r3574 - in branches/aptitude-0.3/aptitude: . src
Daniel Burrows
dburrows@costa.debian.org
Sat, 02 Jul 2005 20:46:02 +0000
Author: dburrows
Date: Sat Jul 2 20:45:59 2005
New Revision: 3574
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/download.cc
Log:
Poll for input more often while downloading, so things are more responsive. Hopefully.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Sat Jul 2 20:45:59 2005
@@ -1,5 +1,10 @@
2005-07-02 Daniel Burrows <dburrows@debian.org>
+ * src/download.cc:
+
+ Try greatly increasing the resolution of pulses, to make the UI
+ more responsive during a download.
+
* src/ui.cc:
Force the broken indicator to start out hidden.
Modified: branches/aptitude-0.3/aptitude/src/download.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/download.cc (original)
+++ branches/aptitude-0.3/aptitude/src/download.cc Sat Jul 2 20:45:59 2005
@@ -127,7 +127,7 @@
sigaddset(&signals, SIGWINCH);
sigprocmask(SIG_UNBLOCK, &signals, &oldsigs);
- switch(fetcher.Run())
+ switch(fetcher.Run(5000))
// At this point the widget should be deleted
{
case pkgAcquire::Failed:
@@ -381,7 +381,7 @@
{
sigprocmask(SIG_SETMASK, &oldsigs, &signals);
- pkgAcquire::RunResult res=fetcher.Run();
+ pkgAcquire::RunResult res=fetcher.Run(5000);
if(res!=pkgAcquire::Continue || abortable.get_aborted())
// We failed or were cancelled
{