diff options
author | Michael Vogt <mvo@debian.org> | 2014-07-31 09:53:13 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-07-31 09:53:13 +0200 |
commit | e05672e88678f520b2db59599e939345ad0b6e53 (patch) | |
tree | 56f0cfc91747229f694193a653daadb2dbecafdb /apt-pkg/acquire.cc | |
parent | 1f4dd8fd8489fbfd62c4d1667f159433a5f532b2 (diff) |
Rework TransactionID stuff
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r-- | apt-pkg/acquire.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index b14a54f0f..33afd8f1f 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -198,6 +198,7 @@ bool pkgAcquire::TransactionHasError(unsigned long TransactionID) if((*I)->Status == pkgAcquire::Item::StatError || (*I)->Status == pkgAcquire::Item::StatAuthError) return true; + return false; } // Acquire::CommitTransaction - Commit a transaction /*{{{*/ @@ -230,6 +231,8 @@ void pkgAcquire::CommitTransaction(unsigned long TransactionID) << (*I)->DestFile << std::endl; unlink((*I)->DestFile.c_str()); } + // mark that this transaction is finished + (*I)->TransactionID = 0; } } /*}}}*/ |