summaryrefslogtreecommitdiff
path: root/apt-private/private-source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-private/private-source.cc')
-rw-r--r--apt-private/private-source.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-private/private-source.cc b/apt-private/private-source.cc
index c7e5e4257..da7330970 100644
--- a/apt-private/private-source.cc
+++ b/apt-private/private-source.cc
@@ -245,8 +245,8 @@ static pkgSrcRecords::Parser *FindSrc(const char *Name,
// choose a good candidate and proceed with that.
// Maybe we will find a source later on with the right VerTag
// or RelTag
- pkgCache::VerIterator Ver = Cache->GetCandidateVer(Pkg);
- if (Ver.end() == false)
+ pkgCache::VerIterator const Ver = Cache->GetCandidateVersion(Pkg);
+ if (Ver.end() == false)
{
if (strcmp(Ver.SourcePkgName(),Ver.ParentPkg().Name()) != 0)
Src = Ver.SourcePkgName();