diff options
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); } |
