summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/hashes.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-04-04 14:30:17 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-04-04 14:30:17 +0200
commitce928105d7279c5604f034740b04dc6a745fb859 (patch)
treef31261fdbbae13f1b40f99cf42a1d79d677098a7 /apt-pkg/contrib/hashes.cc
parent62f1ee1cc7a5e16ca0cbfbee3c00cefab1892f87 (diff)
Implement CacheDB for source packages in apt-ftparchive
Diffstat (limited to 'apt-pkg/contrib/hashes.cc')
-rw-r--r--apt-pkg/contrib/hashes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/hashes.cc b/apt-pkg/contrib/hashes.cc
index 1fce0d75f..15f83615d 100644
--- a/apt-pkg/contrib/hashes.cc
+++ b/apt-pkg/contrib/hashes.cc
@@ -133,7 +133,7 @@ bool Hashes::AddFD(int const Fd,unsigned long long Size, bool const addMD5,
bool const addSHA1, bool const addSHA256, bool const addSHA512)
{
unsigned char Buf[64*64];
- bool const ToEOF = (Size == 0);
+ bool const ToEOF = (Size == UntilEOF);
while (Size != 0 || ToEOF)
{
unsigned long long n = sizeof(Buf);