summaryrefslogtreecommitdiff
path: root/apt-private/private-cmndline.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2018-08-15 00:23:37 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2018-09-28 13:19:36 +0200
commit8e28398f3bc9cc9e8c5a038ef26823fc41dc5910 (patch)
tree84b2d9435a529e13608f9ee22724fa4547c8d841 /apt-private/private-cmndline.h
parent2396ef367be19ee71ba97e799aade79423dcf484 (diff)
Support records larger than 32kb in 'apt show'
The default buffer size for pkgTagFile is 32kb which should be big enough for everything… expect for enormous lists of provides, resulting in: $ apt show librust-winapi-dev E: Unable to parse package file /var/lib/apt/lists/ftp.br.debian.org_debian_dists_unstable_main_binary-amd64_Packages (2) E: Internal Error, Unable to parse a package record The "apt-cache show" codepath uses instead a max size for all files, which seems a bit excessive, but works – using the max size for the file in question seems most appropriate. The patch is written for the 1.6.y series as a rewrite of the related code in the 1.7.y series (commit bf53f39c9a0221b670ffff74053ed36fc502d5a0) removed this problem before it was reported. Closes: #905527 LP: #1787120 (cherry picked from commit 409ceec9ed30cbebd8ece1ef7ce667ab5a32f9df)
Diffstat (limited to 'apt-private/private-cmndline.h')
0 files changed, 0 insertions, 0 deletions