You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

498 lines
20 KiB

  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. /* ######################################################################
  4. Cache Iterators - Iterators for navigating the cache structure
  5. The iterators all provides ++,==,!=,->,* and end for their type.
  6. The end function can be used to tell if the list has been fully
  7. traversed.
  8. Unlike STL iterators these contain helper functions to access the data
  9. that is being iterated over. This is because the data structures can't
  10. be formed in a manner that is intuitive to use and also mmapable.
  11. For each variable in the target structure that would need a translation
  12. to be accessed correctly a translating function of the same name is
  13. present in the iterator. If applicable the translating function will
  14. return an iterator.
  15. The DepIterator can iterate over two lists, a list of 'version depends'
  16. or a list of 'package reverse depends'. The type is determined by the
  17. structure passed to the constructor, which should be the structure
  18. that has the depends pointer as a member. The provide iterator has the
  19. same system.
  20. This header is not user includable, please use apt-pkg/pkgcache.h
  21. ##################################################################### */
  22. /*}}}*/
  23. #ifndef PKGLIB_CACHEITERATORS_H
  24. #define PKGLIB_CACHEITERATORS_H
  25. #include<apt-pkg/pkgcache.h>
  26. #include<apt-pkg/macros.h>
  27. #include<iterator>
  28. #include <iosfwd>
  29. #include <string>
  30. #include<string.h>
  31. // abstract Iterator template /*{{{*/
  32. /* This template provides the very basic iterator methods we
  33. need to have for doing some walk-over-the-cache magic */
  34. template<typename Str, typename Itr> class pkgCache::Iterator :
  35. public std::iterator<std::forward_iterator_tag, Str> {
  36. protected:
  37. Str *S;
  38. pkgCache *Owner;
  39. /** \brief Returns the Pointer for this struct in the owner
  40. * The implementation of this method should be pretty short
  41. * as it will only return the Pointer into the mmap stored
  42. * in the owner but the name of this pointer is different for
  43. * each structure and we want to abstract here at least for the
  44. * basic methods from the actual structure.
  45. * \return Pointer to the first structure of this type
  46. */
  47. virtual Str* OwnerPointer() const = 0;
  48. public:
  49. // Iteration
  50. virtual void operator ++(int) = 0;
  51. virtual void operator ++() = 0; // Should be {operator ++(0);}
  52. inline bool end() const {return Owner == 0 || S == OwnerPointer();}
  53. // Comparison
  54. inline bool operator ==(const Itr &B) const {return S == B.S;}
  55. inline bool operator !=(const Itr &B) const {return S != B.S;}
  56. // Accessors
  57. inline Str *operator ->() {return S;}
  58. inline Str const *operator ->() const {return S;}
  59. inline operator Str *() {return S == OwnerPointer() ? 0 : S;}
  60. inline operator Str const *() const {return S == OwnerPointer() ? 0 : S;}
  61. inline Str &operator *() {return *S;}
  62. inline Str const &operator *() const {return *S;}
  63. inline pkgCache *Cache() const {return Owner;}
  64. // Mixed stuff
  65. inline void operator =(const Itr &B) {S = B.S; Owner = B.Owner;}
  66. inline bool IsGood() const { return S && Owner && ! end();}
  67. inline unsigned long Index() const {return S - OwnerPointer();}
  68. void ReMap(void const * const oldMap, void const * const newMap) {
  69. if (Owner == 0 || S == 0)
  70. return;
  71. S += (Str const * const)(newMap) - (Str const * const)(oldMap);
  72. }
  73. // Constructors - look out for the variable assigning
  74. inline Iterator() : S(0), Owner(0) {}
  75. inline Iterator(pkgCache &Owner,Str *T = 0) : S(T), Owner(&Owner) {}
  76. };
  77. /*}}}*/
  78. // Group Iterator /*{{{*/
  79. /* Packages with the same name are collected in a Group so someone only
  80. interest in package names can iterate easily over the names, so the
  81. different architectures can be treated as of the "same" package
  82. (apt internally treat them as totally different packages) */
  83. class pkgCache::GrpIterator: public Iterator<Group, GrpIterator> {
  84. long HashIndex;
  85. protected:
  86. inline Group* OwnerPointer() const {
  87. return (Owner != 0) ? Owner->GrpP : 0;
  88. }
  89. public:
  90. // This constructor is the 'begin' constructor, never use it.
  91. inline GrpIterator(pkgCache &Owner) : Iterator<Group, GrpIterator>(Owner), HashIndex(-1) {
  92. S = OwnerPointer();
  93. operator ++(0);
  94. }
  95. virtual void operator ++(int);
  96. virtual void operator ++() {operator ++(0);}
  97. inline const char *Name() const {return S->Name == 0?0:Owner->StrP + S->Name;}
  98. inline PkgIterator PackageList() const;
  99. PkgIterator FindPkg(std::string Arch = "any") const;
  100. /** \brief find the package with the "best" architecture
  101. The best architecture is either the "native" or the first
  102. in the list of Architectures which is not an end-Pointer
  103. \param PreferNonVirtual tries to respond with a non-virtual package
  104. and only if this fails returns the best virtual package */
  105. PkgIterator FindPreferredPkg(bool const &PreferNonVirtual = true) const;
  106. PkgIterator NextPkg(PkgIterator const &Pkg) const;
  107. // Constructors
  108. inline GrpIterator(pkgCache &Owner, Group *Trg) : Iterator<Group, GrpIterator>(Owner, Trg), HashIndex(0) {
  109. if (S == 0)
  110. S = OwnerPointer();
  111. }
  112. inline GrpIterator() : Iterator<Group, GrpIterator>(), HashIndex(0) {}
  113. };
  114. /*}}}*/
  115. // Package Iterator /*{{{*/
  116. class pkgCache::PkgIterator: public Iterator<Package, PkgIterator> {
  117. long HashIndex;
  118. protected:
  119. inline Package* OwnerPointer() const {
  120. return (Owner != 0) ? Owner->PkgP : 0;
  121. }
  122. public:
  123. // This constructor is the 'begin' constructor, never use it.
  124. inline PkgIterator(pkgCache &Owner) : Iterator<Package, PkgIterator>(Owner), HashIndex(-1) {
  125. S = OwnerPointer();
  126. operator ++(0);
  127. }
  128. virtual void operator ++(int);
  129. virtual void operator ++() {operator ++(0);}
  130. enum OkState {NeedsNothing,NeedsUnpack,NeedsConfigure};
  131. // Accessors
  132. inline const char *Name() const { return Group().Name(); }
  133. // Versions have sections - and packages can have different versions with different sections
  134. // so this interface is broken by design. Run as fast as you can to Version.Section().
  135. APT_DEPRECATED inline const char *Section() const {
  136. APT_IGNORE_DEPRECATED_PUSH
  137. return S->Section == 0?0:Owner->StrP + S->Section;
  138. APT_IGNORE_DEPRECATED_POP
  139. }
  140. inline bool Purge() const {return S->CurrentState == pkgCache::State::Purge ||
  141. (S->CurrentVer == 0 && S->CurrentState == pkgCache::State::NotInstalled);}
  142. inline const char *Arch() const {return S->Arch == 0?0:Owner->StrP + S->Arch;}
  143. inline APT_PURE GrpIterator Group() const { return GrpIterator(*Owner, Owner->GrpP + S->Group);}
  144. inline VerIterator VersionList() const APT_PURE;
  145. inline VerIterator CurrentVer() const APT_PURE;
  146. inline DepIterator RevDependsList() const APT_PURE;
  147. inline PrvIterator ProvidesList() const APT_PURE;
  148. OkState State() const APT_PURE;
  149. const char *CandVersion() const APT_PURE;
  150. const char *CurVersion() const APT_PURE;
  151. //Nice printable representation
  152. friend std::ostream& operator <<(std::ostream& out, PkgIterator i);
  153. std::string FullName(bool const &Pretty = false) const;
  154. // Constructors
  155. inline PkgIterator(pkgCache &Owner,Package *Trg) : Iterator<Package, PkgIterator>(Owner, Trg), HashIndex(0) {
  156. if (S == 0)
  157. S = OwnerPointer();
  158. }
  159. inline PkgIterator() : Iterator<Package, PkgIterator>(), HashIndex(0) {}
  160. };
  161. /*}}}*/
  162. // Version Iterator /*{{{*/
  163. class pkgCache::VerIterator : public Iterator<Version, VerIterator> {
  164. protected:
  165. inline Version* OwnerPointer() const {
  166. return (Owner != 0) ? Owner->VerP : 0;
  167. }
  168. public:
  169. // Iteration
  170. void operator ++(int) {if (S != Owner->VerP) S = Owner->VerP + S->NextVer;}
  171. inline void operator ++() {operator ++(0);}
  172. // Comparison
  173. int CompareVer(const VerIterator &B) const;
  174. /** \brief compares two version and returns if they are similar
  175. This method should be used to identify if two pseudo versions are
  176. referring to the same "real" version */
  177. inline bool SimilarVer(const VerIterator &B) const {
  178. return (B.end() == false && S->Hash == B->Hash && strcmp(VerStr(), B.VerStr()) == 0);
  179. }
  180. // Accessors
  181. inline const char *VerStr() const {return S->VerStr == 0?0:Owner->StrP + S->VerStr;}
  182. inline const char *Section() const {return S->Section == 0?0:Owner->StrP + S->Section;}
  183. #if APT_PKG_ABI >= 413
  184. /** \brief source package name this version comes from
  185. Always contains the name, even if it is the same as the binary name */
  186. inline const char *SourcePkgName() const {return Owner->StrP + S->SourcePkgName;}
  187. /** \brief source version this version comes from
  188. Always contains the version string, even if it is the same as the binary version */
  189. inline const char *SourceVerStr() const {return Owner->StrP + S->SourceVerStr;}
  190. #endif
  191. inline const char *Arch() const {
  192. if ((S->MultiArch & pkgCache::Version::All) == pkgCache::Version::All)
  193. return "all";
  194. return S->ParentPkg == 0?0:Owner->StrP + ParentPkg()->Arch;
  195. }
  196. inline PkgIterator ParentPkg() const {return PkgIterator(*Owner,Owner->PkgP + S->ParentPkg);}
  197. inline DescIterator DescriptionList() const;
  198. DescIterator TranslatedDescription() const;
  199. inline DepIterator DependsList() const;
  200. inline PrvIterator ProvidesList() const;
  201. inline VerFileIterator FileList() const;
  202. bool Downloadable() const;
  203. inline const char *PriorityType() const {return Owner->Priority(S->Priority);}
  204. const char *MultiArchType() const APT_PURE;
  205. std::string RelStr() const;
  206. bool Automatic() const;
  207. VerFileIterator NewestFile() const;
  208. inline VerIterator(pkgCache &Owner,Version *Trg = 0) : Iterator<Version, VerIterator>(Owner, Trg) {
  209. if (S == 0)
  210. S = OwnerPointer();
  211. }
  212. inline VerIterator() : Iterator<Version, VerIterator>() {}
  213. };
  214. /*}}}*/
  215. // Description Iterator /*{{{*/
  216. class pkgCache::DescIterator : public Iterator<Description, DescIterator> {
  217. protected:
  218. inline Description* OwnerPointer() const {
  219. return (Owner != 0) ? Owner->DescP : 0;
  220. }
  221. public:
  222. // Iteration
  223. void operator ++(int) {if (S != Owner->DescP) S = Owner->DescP + S->NextDesc;}
  224. inline void operator ++() {operator ++(0);}
  225. // Comparison
  226. int CompareDesc(const DescIterator &B) const;
  227. // Accessors
  228. inline const char *LanguageCode() const {return Owner->StrP + S->language_code;}
  229. inline const char *md5() const {return Owner->StrP + S->md5sum;}
  230. inline DescFileIterator FileList() const;
  231. inline DescIterator() : Iterator<Description, DescIterator>() {}
  232. inline DescIterator(pkgCache &Owner,Description *Trg = 0) : Iterator<Description, DescIterator>(Owner, Trg) {
  233. if (S == 0)
  234. S = Owner.DescP;
  235. }
  236. };
  237. /*}}}*/
  238. // Dependency iterator /*{{{*/
  239. class pkgCache::DepIterator : public Iterator<Dependency, DepIterator> {
  240. enum {DepVer, DepRev} Type;
  241. protected:
  242. inline Dependency* OwnerPointer() const {
  243. return (Owner != 0) ? Owner->DepP : 0;
  244. }
  245. public:
  246. // Iteration
  247. void operator ++(int) {if (S != Owner->DepP) S = Owner->DepP +
  248. (Type == DepVer ? S->NextDepends : S->NextRevDepends);}
  249. inline void operator ++() {operator ++(0);}
  250. // Accessors
  251. inline const char *TargetVer() const {return S->Version == 0?0:Owner->StrP + S->Version;}
  252. inline PkgIterator TargetPkg() const {return PkgIterator(*Owner,Owner->PkgP + S->Package);}
  253. inline PkgIterator SmartTargetPkg() const {PkgIterator R(*Owner,0);SmartTargetPkg(R);return R;}
  254. inline VerIterator ParentVer() const {return VerIterator(*Owner,Owner->VerP + S->ParentVer);}
  255. inline PkgIterator ParentPkg() const {return PkgIterator(*Owner,Owner->PkgP + Owner->VerP[S->ParentVer].ParentPkg);}
  256. inline bool Reverse() const {return Type == DepRev;}
  257. bool IsCritical() const APT_PURE;
  258. bool IsNegative() const APT_PURE;
  259. bool IsIgnorable(PrvIterator const &Prv) const APT_PURE;
  260. bool IsIgnorable(PkgIterator const &Pkg) const APT_PURE;
  261. bool IsMultiArchImplicit() const APT_PURE;
  262. bool IsSatisfied(VerIterator const &Ver) const APT_PURE;
  263. bool IsSatisfied(PrvIterator const &Prv) const APT_PURE;
  264. void GlobOr(DepIterator &Start,DepIterator &End);
  265. Version **AllTargets() const;
  266. bool SmartTargetPkg(PkgIterator &Result) const;
  267. inline const char *CompType() const {return Owner->CompType(S->CompareOp);}
  268. inline const char *DepType() const {return Owner->DepType(S->Type);}
  269. //Nice printable representation
  270. friend std::ostream& operator <<(std::ostream& out, DepIterator D);
  271. inline DepIterator(pkgCache &Owner, Dependency *Trg, Version* = 0) :
  272. Iterator<Dependency, DepIterator>(Owner, Trg), Type(DepVer) {
  273. if (S == 0)
  274. S = Owner.DepP;
  275. }
  276. inline DepIterator(pkgCache &Owner, Dependency *Trg, Package*) :
  277. Iterator<Dependency, DepIterator>(Owner, Trg), Type(DepRev) {
  278. if (S == 0)
  279. S = Owner.DepP;
  280. }
  281. inline DepIterator() : Iterator<Dependency, DepIterator>(), Type(DepVer) {}
  282. };
  283. /*}}}*/
  284. // Provides iterator /*{{{*/
  285. class pkgCache::PrvIterator : public Iterator<Provides, PrvIterator> {
  286. enum {PrvVer, PrvPkg} Type;
  287. protected:
  288. inline Provides* OwnerPointer() const {
  289. return (Owner != 0) ? Owner->ProvideP : 0;
  290. }
  291. public:
  292. // Iteration
  293. void operator ++(int) {if (S != Owner->ProvideP) S = Owner->ProvideP +
  294. (Type == PrvVer?S->NextPkgProv:S->NextProvides);}
  295. inline void operator ++() {operator ++(0);}
  296. // Accessors
  297. inline const char *Name() const {return ParentPkg().Name();}
  298. inline const char *ProvideVersion() const {return S->ProvideVersion == 0?0:Owner->StrP + S->ProvideVersion;}
  299. inline PkgIterator ParentPkg() const {return PkgIterator(*Owner,Owner->PkgP + S->ParentPkg);}
  300. inline VerIterator OwnerVer() const {return VerIterator(*Owner,Owner->VerP + S->Version);}
  301. inline PkgIterator OwnerPkg() const {return PkgIterator(*Owner,Owner->PkgP + Owner->VerP[S->Version].ParentPkg);}
  302. bool IsMultiArchImplicit() const APT_PURE;
  303. inline PrvIterator() : Iterator<Provides, PrvIterator>(), Type(PrvVer) {}
  304. inline PrvIterator(pkgCache &Owner, Provides *Trg, Version*) :
  305. Iterator<Provides, PrvIterator>(Owner, Trg), Type(PrvVer) {
  306. if (S == 0)
  307. S = Owner.ProvideP;
  308. }
  309. inline PrvIterator(pkgCache &Owner, Provides *Trg, Package*) :
  310. Iterator<Provides, PrvIterator>(Owner, Trg), Type(PrvPkg) {
  311. if (S == 0)
  312. S = Owner.ProvideP;
  313. }
  314. };
  315. /*}}}*/
  316. // Release file /*{{{*/
  317. class pkgCache::RlsFileIterator : public Iterator<ReleaseFile, RlsFileIterator> {
  318. protected:
  319. inline ReleaseFile* OwnerPointer() const {
  320. return (Owner != 0) ? Owner->RlsFileP : 0;
  321. }
  322. public:
  323. // Iteration
  324. void operator ++(int) {if (S != Owner->RlsFileP) S = Owner->RlsFileP + S->NextFile;}
  325. inline void operator ++() {operator ++(0);}
  326. // Accessors
  327. inline const char *FileName() const {return S->FileName == 0?0:Owner->StrP + S->FileName;}
  328. inline const char *Archive() const {return S->Archive == 0?0:Owner->StrP + S->Archive;}
  329. inline const char *Version() const {return S->Version == 0?0:Owner->StrP + S->Version;}
  330. inline const char *Origin() const {return S->Origin == 0?0:Owner->StrP + S->Origin;}
  331. inline const char *Codename() const {return S->Codename ==0?0:Owner->StrP + S->Codename;}
  332. inline const char *Label() const {return S->Label == 0?0:Owner->StrP + S->Label;}
  333. inline const char *Site() const {return S->Site == 0?0:Owner->StrP + S->Site;}
  334. inline bool Flagged(pkgCache::Flag::ReleaseFileFlags const flag) const {return (S->Flags & flag) == flag; }
  335. bool IsOk();
  336. std::string RelStr();
  337. // Constructors
  338. inline RlsFileIterator() : Iterator<ReleaseFile, RlsFileIterator>() {}
  339. inline RlsFileIterator(pkgCache &Owner) : Iterator<ReleaseFile, RlsFileIterator>(Owner, Owner.RlsFileP) {}
  340. inline RlsFileIterator(pkgCache &Owner,ReleaseFile *Trg) : Iterator<ReleaseFile, RlsFileIterator>(Owner, Trg) {}
  341. };
  342. /*}}}*/
  343. // Package file /*{{{*/
  344. class pkgCache::PkgFileIterator : public Iterator<PackageFile, PkgFileIterator> {
  345. protected:
  346. inline PackageFile* OwnerPointer() const {
  347. return (Owner != 0) ? Owner->PkgFileP : 0;
  348. }
  349. public:
  350. // Iteration
  351. void operator ++(int) {if (S != Owner->PkgFileP) S = Owner->PkgFileP + S->NextFile;}
  352. inline void operator ++() {operator ++(0);}
  353. // Accessors
  354. inline const char *FileName() const {return S->FileName == 0?0:Owner->StrP + S->FileName;}
  355. inline pkgCache::RlsFileIterator ReleaseFile() const {return RlsFileIterator(*Owner, Owner->RlsFileP + S->Release);}
  356. inline const char *Archive() const {return S->Release == 0 ? Component() : ReleaseFile().Archive();}
  357. inline const char *Version() const {return S->Release == 0 ? NULL : ReleaseFile().Version();}
  358. inline const char *Origin() const {return S->Release == 0 ? NULL : ReleaseFile().Origin();}
  359. inline const char *Codename() const {return S->Release == 0 ? NULL : ReleaseFile().Codename();}
  360. inline const char *Label() const {return S->Release == 0 ? NULL : ReleaseFile().Label();}
  361. inline const char *Site() const {return S->Release == 0 ? NULL : ReleaseFile().Site();}
  362. inline bool Flagged(pkgCache::Flag::ReleaseFileFlags const flag) const {return S->Release== 0 ? false : ReleaseFile().Flagged(flag);}
  363. inline bool Flagged(pkgCache::Flag::PkgFFlags const flag) const {return (S->Flags & flag) == flag;}
  364. inline const char *Component() const {return S->Component == 0?0:Owner->StrP + S->Component;}
  365. inline const char *Architecture() const {return S->Architecture == 0?0:Owner->StrP + S->Architecture;}
  366. inline const char *IndexType() const {return S->IndexType == 0?0:Owner->StrP + S->IndexType;}
  367. bool IsOk();
  368. std::string RelStr();
  369. // Constructors
  370. inline PkgFileIterator() : Iterator<PackageFile, PkgFileIterator>() {}
  371. inline PkgFileIterator(pkgCache &Owner) : Iterator<PackageFile, PkgFileIterator>(Owner, Owner.PkgFileP) {}
  372. inline PkgFileIterator(pkgCache &Owner,PackageFile *Trg) : Iterator<PackageFile, PkgFileIterator>(Owner, Trg) {}
  373. };
  374. /*}}}*/
  375. // Version File /*{{{*/
  376. class pkgCache::VerFileIterator : public pkgCache::Iterator<VerFile, VerFileIterator> {
  377. protected:
  378. inline VerFile* OwnerPointer() const {
  379. return (Owner != 0) ? Owner->VerFileP : 0;
  380. }
  381. public:
  382. // Iteration
  383. void operator ++(int) {if (S != Owner->VerFileP) S = Owner->VerFileP + S->NextFile;}
  384. inline void operator ++() {operator ++(0);}
  385. // Accessors
  386. inline PkgFileIterator File() const {return PkgFileIterator(*Owner,S->File + Owner->PkgFileP);}
  387. inline VerFileIterator() : Iterator<VerFile, VerFileIterator>() {}
  388. inline VerFileIterator(pkgCache &Owner,VerFile *Trg) : Iterator<VerFile, VerFileIterator>(Owner, Trg) {}
  389. };
  390. /*}}}*/
  391. // Description File /*{{{*/
  392. class pkgCache::DescFileIterator : public Iterator<DescFile, DescFileIterator> {
  393. protected:
  394. inline DescFile* OwnerPointer() const {
  395. return (Owner != 0) ? Owner->DescFileP : 0;
  396. }
  397. public:
  398. // Iteration
  399. void operator ++(int) {if (S != Owner->DescFileP) S = Owner->DescFileP + S->NextFile;}
  400. inline void operator ++() {operator ++(0);}
  401. // Accessors
  402. inline PkgFileIterator File() const {return PkgFileIterator(*Owner,S->File + Owner->PkgFileP);}
  403. inline DescFileIterator() : Iterator<DescFile, DescFileIterator>() {}
  404. inline DescFileIterator(pkgCache &Owner,DescFile *Trg) : Iterator<DescFile, DescFileIterator>(Owner, Trg) {}
  405. };
  406. /*}}}*/
  407. // Inlined Begin functions can't be in the class because of order problems /*{{{*/
  408. inline pkgCache::PkgIterator pkgCache::GrpIterator::PackageList() const
  409. {return PkgIterator(*Owner,Owner->PkgP + S->FirstPackage);}
  410. inline pkgCache::VerIterator pkgCache::PkgIterator::VersionList() const
  411. {return VerIterator(*Owner,Owner->VerP + S->VersionList);}
  412. inline pkgCache::VerIterator pkgCache::PkgIterator::CurrentVer() const
  413. {return VerIterator(*Owner,Owner->VerP + S->CurrentVer);}
  414. inline pkgCache::DepIterator pkgCache::PkgIterator::RevDependsList() const
  415. {return DepIterator(*Owner,Owner->DepP + S->RevDepends,S);}
  416. inline pkgCache::PrvIterator pkgCache::PkgIterator::ProvidesList() const
  417. {return PrvIterator(*Owner,Owner->ProvideP + S->ProvidesList,S);}
  418. inline pkgCache::DescIterator pkgCache::VerIterator::DescriptionList() const
  419. {return DescIterator(*Owner,Owner->DescP + S->DescriptionList);}
  420. inline pkgCache::PrvIterator pkgCache::VerIterator::ProvidesList() const
  421. {return PrvIterator(*Owner,Owner->ProvideP + S->ProvidesList,S);}
  422. inline pkgCache::DepIterator pkgCache::VerIterator::DependsList() const
  423. {return DepIterator(*Owner,Owner->DepP + S->DependsList,S);}
  424. inline pkgCache::VerFileIterator pkgCache::VerIterator::FileList() const
  425. {return VerFileIterator(*Owner,Owner->VerFileP + S->FileList);}
  426. inline pkgCache::DescFileIterator pkgCache::DescIterator::FileList() const
  427. {return DescFileIterator(*Owner,Owner->DescFileP + S->FileList);}
  428. /*}}}*/
  429. #endif