]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-method.cc
Merge remote-tracking branch 'donkult/feature/acq-trans' into feature/expected-size
[apt.git] / apt-pkg / acquire-method.cc
index cbcbea247f38f5e1e4a4a8b5c309e7c0bf367956..c78e95e58959fdfeed64ad25c45c45ea90652ae9 100644 (file)
@@ -375,6 +375,8 @@ int pkgAcqMethod::Run(bool Single)
               if (hash.empty() == false)
                  Tmp->ExpectedHashes.push_back(HashString(*t, hash));
            }
+            char *End;
+            Tmp->MaximumSize = strtoll(LookupTag(Message, "Maximum-Size", "0").c_str(), &End, 10);
            Tmp->Next = 0;
            
            // Append it to the list