]> git.saurik.com Git - apt.git/blobdiff - apt-private/acqprogress.cc
Merge branch 'feature/acq-trans' into feature/expected-size
[apt.git] / apt-private / acqprogress.cc
index 17a12799cf6dbb0430677af5b99fc337af3d5fb5..aa88d53344fbbb66695084e48fafd02d4605a828 100644 (file)
@@ -117,6 +117,8 @@ void AcqTextStatus::Fail(pkgAcquire::ItemDesc &Itm)
    if (Itm.Owner->Status == pkgAcquire::Item::StatDone)
    {
       cout << _("Ign ") << Itm.Description << endl;
+      if (Itm.Owner->ErrorText.empty() == false)
+        cout << "  " << Itm.Owner->ErrorText << endl;
    }
    else
    {
@@ -202,9 +204,9 @@ bool AcqTextStatus::Pulse(pkgAcquire *Owner)
       S += strlen(S);
 
       // Show the short mode string
-      if (I->CurrentItem->Owner->Mode != 0)
+      if (I->CurrentItem->Owner->ActiveSubprocess.empty() == false)
       {
-        snprintf(S,End-S," %s",I->CurrentItem->Owner->Mode);
+        snprintf(S,End-S, " %s", I->CurrentItem->Owner->ActiveSubprocess.c_str());
         S += strlen(S);
       }