summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-07-31 09:53:13 +0200
committerMichael Vogt <mvo@debian.org>2014-07-31 09:53:13 +0200
commite05672e88678f520b2db59599e939345ad0b6e53 (patch)
tree56f0cfc91747229f694193a653daadb2dbecafdb /apt-pkg/acquire.cc
parent1f4dd8fd8489fbfd62c4d1667f159433a5f532b2 (diff)
Rework TransactionID stuff
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r--apt-pkg/acquire.cc3
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;
}
}
/*}}}*/