config.h | config.h | |||
---|---|---|---|---|
skipping to change at line 41 | skipping to change at line 41 | |||
/* Define if we have enabled pthread support */ | /* Define if we have enabled pthread support */ | |||
/* #undef HAVE_PTHREAD */ | /* #undef HAVE_PTHREAD */ | |||
/* If there is no socklen_t, define this for the netdb shim */ | /* If there is no socklen_t, define this for the netdb shim */ | |||
/* #undef NEED_SOCKLEN_T_DEFINE */ | /* #undef NEED_SOCKLEN_T_DEFINE */ | |||
/* Define the arch name string */ | /* Define the arch name string */ | |||
#define COMMON_ARCH "i386" | #define COMMON_ARCH "i386" | |||
/* The version number string */ | /* The version number string */ | |||
#define VERSION "0.8.0" | #define VERSION "0.8.1" | |||
/* The package name string */ | /* The package name string */ | |||
#define PACKAGE "apt" | #define PACKAGE "apt" | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
configuration.h | configuration.h | |||
---|---|---|---|---|
skipping to change at line 112 | skipping to change at line 112 | |||
void Dump(std::ostream& str); | void Dump(std::ostream& str); | |||
Configuration(const Item *Root); | Configuration(const Item *Root); | |||
Configuration(); | Configuration(); | |||
~Configuration(); | ~Configuration(); | |||
/** \brief match a string against a configurable list of patterns */ | /** \brief match a string against a configurable list of patterns */ | |||
class MatchAgainstConfig | class MatchAgainstConfig | |||
{ | { | |||
std::vector<regex_t *> patterns; | std::vector<regex_t *> patterns; | |||
void clearPatterns(); | ||||
public: | public: | |||
MatchAgainstConfig(char const * Config); | MatchAgainstConfig(char const * Config); | |||
virtual ~MatchAgainstConfig(); | virtual ~MatchAgainstConfig(); | |||
/** \brief Returns \b true for a string matching one of the patterns * / | /** \brief Returns \b true for a string matching one of the patterns * / | |||
bool Match(char const * str) const; | bool Match(char const * str) const; | |||
bool Match(std::string const &str) const { return Match(str.c_str()); }; | bool Match(std::string const &str) const { return Match(str.c_str()); }; | |||
/** \brief returns if the matcher setup was successful */ | /** \brief returns if the matcher setup was successful */ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||
depcache.h | depcache.h | |||
---|---|---|---|---|
skipping to change at line 189 | skipping to change at line 189 | |||
*/ | */ | |||
~ActionGroup(); | ~ActionGroup(); | |||
}; | }; | |||
/** \brief Returns \b true for packages matching a regular | /** \brief Returns \b true for packages matching a regular | |||
* expression in APT::NeverAutoRemove. | * expression in APT::NeverAutoRemove. | |||
*/ | */ | |||
class DefaultRootSetFunc : public InRootSetFunc, public Configuration::M atchAgainstConfig | class DefaultRootSetFunc : public InRootSetFunc, public Configuration::M atchAgainstConfig | |||
{ | { | |||
public: | public: | |||
DefaultRootSetFunc() : Configuration::MatchAgainstConfig("APT::NeverRe move") {}; | DefaultRootSetFunc() : Configuration::MatchAgainstConfig("APT::NeverAu toRemove") {}; | |||
virtual ~DefaultRootSetFunc() {}; | virtual ~DefaultRootSetFunc() {}; | |||
bool InRootSet(const pkgCache::PkgIterator &pkg) { return pkg.end() == true && Match(pkg.Name()); }; | bool InRootSet(const pkgCache::PkgIterator &pkg) { return pkg.end() == true && Match(pkg.Name()); }; | |||
}; | }; | |||
struct StateCache | struct StateCache | |||
{ | { | |||
// Epoch stripped text versions of the two version fields | // Epoch stripped text versions of the two version fields | |||
const char *CandVersion; | const char *CandVersion; | |||
const char *CurVersion; | const char *CurVersion; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||