summaryrefslogtreecommitdiff
path: root/apt-private/private-main.cc
diff options
context:
space:
mode:
authorApollon Oikonomopoulos <apoikos@debian.org>2017-07-12 10:41:58 +0300
committerJulian Andres Klode <jak@debian.org>2017-07-12 11:09:00 +0200
commit5caf6ee2db1ebf294fb0412fddf7d187840cce70 (patch)
tree5e491d8332041c15a267340e84363e016eff322e /apt-private/private-main.cc
parent4a9c136bdb1ec8e73e104738a923e08786c521ef (diff)
Handle supported components with slashes in sources.list
Commit d7c92411dc1f4c6be098d1425f9c1c075e0c2154 parses the Components section of (In)Release and attempts to detect the distribution's supported components. While doing so, it handles component names with slashes in a special manner, assuming that the actual component is only the part after the final slash. This is done to handle security.debian.org, which usually appears in sources.list as follows: deb http://s.d.o/debian-security stretch/updates main contrib non-free while the actual release file has: Codename: stretch Components: updates/main updates/contrib updates/non-free While this special handing on APTs part indeed works for debian-security, it emits spurious warnings on repositories that actually use slashes in the component names *and* appear so in sources.list. We fix this by adding both component versions (whole and final part) to the SupportedComponents array. Closes: #868127
Diffstat (limited to 'apt-private/private-main.cc')
0 files changed, 0 insertions, 0 deletions