summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-05-19 15:19:43 +0000
committerJulian Andres Klode <jak@debian.org>2025-05-19 15:19:43 +0000
commitb4e745bfed0c06b1b7faeceeab32a02a76fb8a54 (patch)
tree475fdfe3b426378cfafecdc6cda09155af20b4db /apt-pkg/pkgcachegen.h
parent9a7e34d491b828a227930654d4f99e4fd2eb93ec (diff)
parent93416f3227685c390c7ab579981efde526134181 (diff)
Merge branch 'include-exclude' into 'main'
Add 'Include'/'Exclude' options to limit packages used from a repository See merge request apt-team/apt!439
Diffstat (limited to 'apt-pkg/pkgcachegen.h')
-rw-r--r--apt-pkg/pkgcachegen.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.h b/apt-pkg/pkgcachegen.h
index b67b37559..c481e1b96 100644
--- a/apt-pkg/pkgcachegen.h
+++ b/apt-pkg/pkgcachegen.h
@@ -35,6 +35,7 @@
class FileFd;
class pkgSourceList;
+class IndexTarget;
class OpProgress;
class pkgIndexFile;
class pkgCacheListParser;
@@ -114,6 +115,8 @@ class APT_HIDDEN pkgCacheGenerator /*{{{*/
pkgCache::ReleaseFile *CurrentRlsFile;
std::string PkgFileName;
pkgCache::PackageFile *CurrentFile;
+ std::unordered_set<std::string> include;
+ std::unordered_set<std::string> exclude;
bool NewGroup(pkgCache::GrpIterator &Grp, std::string_view Name);
bool NewPackage(pkgCache::PkgIterator &Pkg, std::string_view Name, std::string_view Arch);
@@ -137,7 +140,7 @@ class APT_HIDDEN pkgCacheGenerator /*{{{*/
inline map_stringitem_t StoreString(enum StringType const type, std::string_view S) {return StoreString(type, S.data(),S.length());};
void DropProgress() {Progress = 0;};
- bool SelectFile(const std::string &File,pkgIndexFile const &Index, std::string const &Architecture, std::string const &Component, unsigned long Flags = 0);
+ bool SelectFile(const std::string &File, pkgIndexFile const &Index, std::string const &Architecture, std::string const &Component, const IndexTarget *target, unsigned long Flags = 0);
bool SelectReleaseFile(const std::string &File, const std::string &Site, unsigned long Flags = 0);
bool MergeList(ListParser &List,pkgCache::VerIterator *Ver = 0);
inline pkgCache &GetCache() {return Cache;};