summaryrefslogtreecommitdiff
path: root/apt-private/private-update.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-11-09 15:40:19 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-11-09 21:45:55 +0100
commit374f8492e6f109e8427816a8f513e5e8feda9049 (patch)
tree886df5303b11fbde0ea895abc26336bb4705fb91 /apt-private/private-update.cc
parent7824564bfde681eddf6969174bba7604d6f34848 (diff)
allow uninstalled packages to be put on hold
dpkg wants to know about a package before it can be put on hold, so we have to at least hint about its existance in the available file it "maintaince" to know about such stuff. The simple thing would probably be to just feed all Packages files into dpkg as well, but what would be the point really? Exactly, so we take a shortcut here and just create dummies in the available file if we need to which isn't going to be that common as usually you are holding packages back and not off. Who would have thought that a simple feature like setting a package on hold requires more than 200 lines of codeā€¦ at least with the testcase it is now explicitly tested code.
Diffstat (limited to 'apt-private/private-update.cc')
0 files changed, 0 insertions, 0 deletions