~ubuntu-branches/debian/experimental/apt/experimental

« back to all changes in this revision

Viewing changes to apt-pkg/metaindex.h

  • Committer: Package Import Robot
  • Author(s): Michael Vogt, David Kalnischkies, Steve Langasek, Michael Vogt
  • Date: 2013-12-07 14:54:31 UTC
  • mto: This revision was merged to the branch mainline in revision 50.
  • Revision ID: package-import@ubuntu.com-20131207145431-8av51jnzb9kz20ow
Tags: 0.9.14
[ David Kalnischkies ]
* merge ubuntus apport reporting changes to reduce diff
* enable NOISE for build logs to enable analyse
* introduce a vendor system to change sources.list
* add a vendor specific file to have configurable entities
* use a substvar to set the archive-keyring in debian/control
* cherry-pick ubuntus (disabled) net-update fixes
* generate apt-key script with vendor info about keys
* drop old /var/state to /var/lib transition artefacts

[ Steve Langasek ]
* prepare-release: declare the packages needed as source build deps.

[ Michael Vogt ]
* enable release based selection for deb-src (closes: 731102)
* document Dpkg::Progress-Fancy (closes: 726169), thanks to James McCoy
* vendor/makefile: fix build error for parallel builds
* Handle SIGWINCH in APT::Progress-Fancy=1

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include <string>
6
6
#include <apt-pkg/pkgcache.h>
7
7
#include <apt-pkg/indexfile.h>
 
8
#include <apt-pkg/init.h>
8
9
 
9
10
#ifndef APT_8_CLEANER_HEADERS
10
11
#include <apt-pkg/srcrecords.h>
28
29
 
29
30
   public:
30
31
 
31
 
   
32
32
   // Various accessors
33
33
   virtual std::string GetURI() const {return URI;}
34
34
   virtual std::string GetDist() const {return Dist;}
35
35
   virtual const char* GetType() const {return Type;}
36
36
 
 
37
   // interface to to query it
 
38
#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
 
39
   // returns the path of the local file (or "" if its not available)
 
40
   virtual std::string LocalFileName() const {return "";};
 
41
#endif
 
42
 
37
43
   // Interface for acquire
38
 
   virtual std::string ArchiveURI(std::string const& /*File*/) const = 0;
 
44
   virtual std::string ArchiveURI(std::string const& File) const = 0;
39
45
   virtual bool GetIndexes(pkgAcquire *Owner, bool const &GetAll=false) const = 0;
40
 
   
41
46
   virtual std::vector<pkgIndexFile *> *GetIndexFiles() = 0; 
42
47
   virtual bool IsTrusted() const = 0;
43
48
 
44
 
   metaIndex(std::string const &URI, std::string const &Dist, char const * const Type) :
45
 
                Indexes(NULL), Type(Type), URI(URI), Dist(Dist) {
 
49
   metaIndex(std::string const &URI, std::string const &Dist, 
 
50
             char const * const Type) 
 
51
      : Indexes(NULL), Type(Type), URI(URI), Dist(Dist)
 
52
   {
 
53
      /* nothing */
46
54
   }
47
55
 
48
 
   virtual ~metaIndex() {
 
56
   virtual ~metaIndex() 
 
57
   {
49
58
      if (Indexes == 0)
50
59
         return;
51
 
      for (std::vector<pkgIndexFile *>::iterator I = (*Indexes).begin(); I != (*Indexes).end(); ++I)
 
60
      for (std::vector<pkgIndexFile *>::iterator I = (*Indexes).begin();
 
61
           I != (*Indexes).end(); ++I)
52
62
         delete *I;
53
63
      delete Indexes;
54
64
   }