]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-method.cc
make http size check work
[apt.git] / apt-pkg / acquire-method.cc
index 82f2fb3ce091e51c9e11afe88f21bedc60bef096..330854e752adc655b6fa6f111a45c71acbd74757 100644 (file)
@@ -372,6 +372,8 @@ int pkgAcqMethod::Run(bool Single)
               if (hash.empty() == false)
                  Tmp->ExpectedHashes.push_back(HashString(*t, hash));
            }
+            char *End;
+            Tmp->ExpectedSize = strtoll(LookupTag(Message, "Expected-Size", "0").c_str(), &End, 10);
            Tmp->Next = 0;
            
            // Append it to the list