diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:54 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:54 +0000 |
commit | b35d2f5fa0e797bf7062a1a7448a5d54bb396071 (patch) | |
tree | f87dc91079639f2a250b8901265ef35e4517cf5a /apt-pkg/contrib/progress.cc | |
parent | f1148902de0b269467d445554f5d860513e39871 (diff) |
Progress and combined cache generator
Author: jgg
Date: 1998-07-26 04:49:26 GMT
Progress and combined cache generator
Diffstat (limited to 'apt-pkg/contrib/progress.cc')
-rw-r--r-- | apt-pkg/contrib/progress.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apt-pkg/contrib/progress.cc b/apt-pkg/contrib/progress.cc index 8d49eff2e..aa5acf010 100644 --- a/apt-pkg/contrib/progress.cc +++ b/apt-pkg/contrib/progress.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: progress.cc,v 1.2 1998/07/22 01:45:38 jgg Exp $ +// $Id: progress.cc,v 1.3 1998/07/26 04:49:35 jgg Exp $ /* ###################################################################### OpProgress - Operation Progress @@ -97,7 +97,10 @@ void OpTextProgress::Done() if (NoUpdate == false && OldOp.empty() == false) { char S[300]; - snprintf(S,sizeof(S),"\r%s... Done",OldOp.c_str()); + if (_errors->PendingError() == true) + snprintf(S,sizeof(S),"\r%s... Error!",OldOp.c_str()); + else + snprintf(S,sizeof(S),"\r%s... Done",OldOp.c_str()); Write(S); cout << endl; OldOp = string(); @@ -109,7 +112,7 @@ void OpTextProgress::Done() /* */ void OpTextProgress::Update() { - if (CheckChange(0) == false) + if (CheckChange() == false) return; // No percent spinner |