diff options
| author | Julian Andres Klode <jak@debian.org> | 2022-01-20 09:21:03 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2022-01-20 09:21:03 +0000 |
| commit | a25a4d3372ca621c4a98e369578e2769029e17be (patch) | |
| tree | 2bf270a3bb4306239d91ad8557a738304f89761c | |
| parent | b89ab5f07e979902da17f23db56cd42ca068ae21 (diff) | |
| parent | 5cecf6b8dff15afae4b0cf68c8830856c57e384a (diff) | |
Merge branch 'fix-size-parsing-1004064' into 'main'
Fix incorrect type when parsing Size (int to unsigned long long)
See merge request apt-team/apt!210
| -rw-r--r-- | apt-pkg/indexcopy.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/indexcopy.cc b/apt-pkg/indexcopy.cc index 9fa9361a3..88c2150ff 100644 --- a/apt-pkg/indexcopy.cc +++ b/apt-pkg/indexcopy.cc @@ -414,7 +414,7 @@ bool IndexCopy::GrabFirst(string Path,string &To,unsigned int Depth) bool PackageCopy::GetFile(string &File,unsigned long long &Size) { File = Section->FindS("Filename"); - Size = Section->FindI("Size"); + Size = Section->FindULL("Size"); if (File.empty() || Size == 0) return _error->Error("Cannot find filename or size tag"); return true; |
