Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
apt: speedup installing packages with '>=' or '<=' and reduced memory… #50270
What does this PR do?
Speedup salt work and reduce memory comsumption in aptpkg.py when installing packages with operators '>=' and '<='.
What issues does this PR fix or reference?
For each pkg.installed with '>=' or '<=' salt saved output of "apt-cache dump" to variable and then read it. But this output could be huge. For example, on my system it took 47 Gb, but I didn't have 47 Gb of memory, so salt couldn't work.
Salt just saves output of "apt-cache show " if pkg is given, or full output: "apt-cache show .". It is much shorter than "apt-cache dump" (380 Mb on the same system) but contains the same useful information.
Commits signed with GPG?
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.