summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-11-10 10:41:20 +0100
committerJulian Andres Klode <jak@debian.org>2025-11-10 10:01:02 +0000
commit2f4299bf39c85b694876cb8030fae0887e8b5edc (patch)
treea353edee9682acad458a5b3746533d0d09054449 /apt-pkg/pkgcachegen.cc
parent4ff117ecbd2173747da90d387abafa1a56675b55 (diff)
Correctly copy provided version in m-a lazy-init
When a provides was copied, we inadvertently copied the package version instead of the provided version. Copy the provided version instead. Closes: #1120463
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r--apt-pkg/pkgcachegen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index f3c3c10a0..7bf635972 100644
--- a/apt-pkg/pkgcachegen.cc
+++ b/apt-pkg/pkgcachegen.cc
@@ -793,7 +793,7 @@ bool pkgCacheGenerator::NewPackage(pkgCache::PkgIterator &Pkg, string_view Name,
pkgCache::VerIterator V = Prv.OwnerVer();
if (ArchA != V.ParentPkg().Arch())
continue;
- if (NewProvides(V, Pkg, V->VerStr, pkgCache::Flag::MultiArchImplicit | pkgCache::Flag::ArchSpecific) == false)
+ if (NewProvides(V, Pkg, Prv->ProvideVersion, pkgCache::Flag::MultiArchImplicit | pkgCache::Flag::ArchSpecific) == false)
return false;
}
pkgCache::VerIterator V = PkgA.VersionList();