summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/progress.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-05-10 12:18:08 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-05-10 12:18:08 +0200
commitc6660a4ba95e2c8112ee5190a71bdfa6640eb35d (patch)
treedc90b25c81db72bc1662805366ad4ba74a6ba2da /apt-pkg/contrib/progress.h
parent66b6fe055a0604d2a8372e61032e492f88f49f86 (diff)
fix SubProgress to accept a Percent parameter to update the Current
with the text as otherwise the update will be ignored
Diffstat (limited to 'apt-pkg/contrib/progress.h')
-rw-r--r--apt-pkg/contrib/progress.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/apt-pkg/contrib/progress.h b/apt-pkg/contrib/progress.h
index 7dd004f7e..3a914d17f 100644
--- a/apt-pkg/contrib/progress.h
+++ b/apt-pkg/contrib/progress.h
@@ -55,8 +55,7 @@ class OpProgress
public:
void Progress(unsigned long Current);
- void SubProgress(unsigned long SubTotal);
- void SubProgress(unsigned long SubTotal,const string &Op);
+ void SubProgress(unsigned long SubTotal, const string &Op = "", float const Percent = -1);
void OverallProgress(unsigned long Current,unsigned long Total,
unsigned long Size,const string &Op);
virtual void Done() {};