Debian Codegraph @

debian/patches/fix-compilation-newer-apt.diff

raw
1 --- a/apt-pkg-c/cache.h
2 +++ b/apt-pkg-c/cache.h
3 @@ -32,7 +32,7 @@
4 // Return a package by name.
5 UniquePtr<PkgIterator> find_pkg(str name) const {
6 return std::make_unique<PkgIterator>(
7 - this->unconst()->GetPkgCache()->FindPkg(APT::StringView(name.begin(), name.length()))
8 + this->unconst()->GetPkgCache()->FindPkg(std::string_view(name.begin(), name.length()))
9 );
10 }
11