diff options
author | Michael Vogt <mvo@debian.org> | 2014-08-01 17:15:53 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-08-01 17:15:53 +0200 |
commit | 183160cb20cd4aa86e78657bf060bf688edce703 (patch) | |
tree | b6cbc335bdedb45fdad53622018710c9fe505756 /apt-pkg | |
parent | 7abcfdde365d2f1110b1f1189e3fce04abdac98c (diff) |
make errors more consistent
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/acquire.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index 15af5d6bd..be4e494e0 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -185,8 +185,9 @@ void pkgAcquire::AbortTransaction(unsigned long TransactionID) { if(_config->FindB("Debug::Acquire::Transaction", false) == true) std::clog << " Cancel: " << (*I)->DestFile << std::endl; - //Dequeue(*I); - (*I)->Status = pkgAcquire::Item::StatError; + // the transaction will abort, so stop anything that is idle + if ((*I)->Status == pkgAcquire::Item::StatIdle) + (*I)->Status = pkgAcquire::Item::StatDone; } } /*}}}*/ |