diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-11-14 19:02:34 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-11-14 19:02:34 +0000 |
| commit | 6ee247f4e5130a348c46ed385a0f405f32cc92d4 (patch) | |
| tree | a6eae68423219a297bb41e2a558e885f733fb043 /apt-pkg/deb/deblistparser.cc | |
| parent | f7fb7fb921c3bbfa0ef086b0cc9343d126d0ed09 (diff) | |
| parent | fdd846cd67def08f04cc616530adc144fc5435d7 (diff) | |
Merge branch 'append' into 'main'
(+=)+= -> append().append()
See merge request apt-team/apt!398
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
| -rw-r--r-- | apt-pkg/deb/deblistparser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 3f37d2134..c9e31c645 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -846,7 +846,7 @@ bool debListParser::ParseDepends(pkgCache::VerIterator &Ver, // … but this is probably the best thing to do anyway if (Package.substr(found + 1) == "native") { - std::string const Pkg = (std::string{Package.substr(0, found)} += ':') += Ver.Cache()->NativeArch(); + std::string const Pkg = std::string{Package, 0, found}.append(":").append(Ver.Cache()->NativeArch()); if (NewDepends(Ver, Pkg, "any", Version, Op | pkgCache::Dep::ArchSpecific, Type) == false) return false; } |
