]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/pkgcachegen.cc
tests: try to support spaces in TMPDIR
[apt.git] / apt-pkg / pkgcachegen.cc
index 89b4c4bae2475d6aa5726bbe3fb02258a4fe5efd..69c8fd105f67122b8b0371241140a0a9f917164e 100644 (file)
@@ -1070,7 +1070,8 @@ bool pkgCacheListParser::NewProvides(pkgCache::VerIterator &Ver,
 
    // We do not add self referencing provides
    if (Ver.ParentPkg().Name() == PkgName && (PkgArch == Ver.ParentPkg().Arch() ||
-       (PkgArch == "all" && strcmp((Cache.StrP + Cache.HeaderP->Architecture), Ver.ParentPkg().Arch()) == 0)))
+       (PkgArch == "all" && strcmp((Cache.StrP + Cache.HeaderP->Architecture), Ver.ParentPkg().Arch()) == 0)) &&
+        (Version.empty() || Version == Ver.VerStr()))
       return true;
 
    // Locate the target package