diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-26 12:18:02 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-03 11:21:55 +0100 |
| commit | 10755b590311356ecdaa38dbfdf552b6b8fdaddc (patch) | |
| tree | 8d4aa65214999d0ad32002db5bfe6d18477fb217 /apt-pkg/cachefilter-patterns.h | |
| parent | c21598657c8e3e7eaf4f3337774878d1463a8711 (diff) | |
refactor obsolete checks to use VerFileIterator::Downloadable()
Diffstat (limited to 'apt-pkg/cachefilter-patterns.h')
| -rw-r--r-- | apt-pkg/cachefilter-patterns.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apt-pkg/cachefilter-patterns.h b/apt-pkg/cachefilter-patterns.h index 07b7ac61b..8d8a62a9f 100644 --- a/apt-pkg/cachefilter-patterns.h +++ b/apt-pkg/cachefilter-patterns.h @@ -249,11 +249,8 @@ struct APT_HIDDEN PackageIsObsolete : public PackageMatcher // if so return false for (auto ver = pkg.VersionList(); !ver.end(); ver++) { - for (auto file = ver.FileList(); !file.end(); file++) - { - if ((file.File()->Flags & pkgCache::Flag::NotSource) == 0) - return false; - } + if (ver.Downloadable()) + return false; } return true; |
