diff options
| author | Julian Andres Klode <jak@debian.org> | 2023-03-06 09:23:20 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2023-03-06 09:23:20 +0000 |
| commit | 278f542caf92750aed06dae88f066fa01f3f09ac (patch) | |
| tree | a6d93d465bff1f11c81575d3e397a9da359798f7 /apt-pkg | |
| parent | a4aa4c61498fd542ff65b340157db3a4a0a87f60 (diff) | |
| parent | 557aed9806b59bebac33f4589bafc25fcb8a2728 (diff) | |
Merge branch 'pu/never-sections-matching' into 'main'
Fix permissions && change section matching in config files to be more gitignore style rightmost match
See merge request apt-team/apt!286
Diffstat (limited to 'apt-pkg')
| -rw-r--r-- | apt-pkg/depcache.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index b19d180a4..322bf1bbe 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -90,10 +90,10 @@ static bool SectionInSubTree(char const * const SubTree, std::string_view Needle { if (ConfigValueInSubTree(SubTree, Needle)) return true; - auto const sub = Needle.find('/'); + auto const sub = Needle.rfind('/'); if (sub == std::string_view::npos) { - std::string special{"<undefined>/"}; + std::string special{"/"}; special.append(Needle); return ConfigValueInSubTree(SubTree, special); } |
