apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

policy.cc File Reference
#include <config.h>
#include <apt-pkg/aptconfiguration.h>
#include <apt-pkg/cachefilter.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/error.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/policy.h>
#include <apt-pkg/strutl.h>
#include <apt-pkg/tagfile.h>
#include <apt-pkg/version.h>
#include <apt-pkg/versionmatch.h>
#include <iostream>
#include <random>
#include <sstream>
#include <string>
#include <vector>
#include <ctype.h>
#include <stddef.h>
#include <string.h>
#include <apti18n.h>
Include dependency graph for policy.cc:

Go to the source code of this file.

Classes

struct  pkgPolicy::Private
 

Functions

static bool ExcludePhased (std::string machineID, pkgCache::VerIterator const &Ver)
 
bool ReadPinDir (pkgPolicy &Plcy, string Dir)
 
bool ReadPinFile (pkgPolicy &Plcy, string File)
 

Variables

constexpr short NEVER_PIN = std::numeric_limits<short>::min()
 

Function Documentation

◆ ExcludePhased()

static bool ExcludePhased ( std::string  machineID,
pkgCache::VerIterator const &  Ver 
)
inlinestatic

Definition at line 287 of file policy.cc.

References _config, and APT::Configuration::isChroot().

Referenced by pkgPolicy::GetPriority().

◆ ReadPinDir()

bool ReadPinDir ( pkgPolicy Plcy,
string  Dir 
)

◆ ReadPinFile()

Variable Documentation

◆ NEVER_PIN

constexpr short NEVER_PIN = std::numeric_limits<short>::min()
constexpr

Definition at line 43 of file policy.cc.

Referenced by pkgPolicy::GetPriority(), pkgPolicy::InitDefaults(), and ReadPinFile().