"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "apt-pkg/depcache.cc" between
apt-2.1.20.tar.gz and apt-2.2.0.tar.gz

About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.

depcache.cc  (apt-2.1.20):depcache.cc  (apt-2.2.0)
skipping to change at line 52 skipping to change at line 52
#include <apti18n.h> #include <apti18n.h>
/*}}}*/ /*}}}*/
using std::string; using std::string;
// helper for kernel autoremoval /*{{{*/ // helper for kernel autoremoval /*{{{*/
/** \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 APT_PUBLIC DefaultRootSetFunc2 : public pkgDepCache::DefaultRootSetFunc class DefaultRootSetFunc2 : public pkgDepCache::DefaultRootSetFunc
{ {
std::unique_ptr<APT::CacheFilter::Matcher> Kernels; std::unique_ptr<APT::CacheFilter::Matcher> Kernels;
public: public:
DefaultRootSetFunc2(pkgCache *cache) : Kernels(APT::KernelAutoRemoveHelper::G etProtectedKernelsFilter(cache)){}; DefaultRootSetFunc2(pkgCache *cache) : Kernels(APT::KernelAutoRemoveHelper::G etProtectedKernelsFilter(cache)){};
virtual ~DefaultRootSetFunc2(){}; virtual ~DefaultRootSetFunc2(){};
bool InRootSet(const pkgCache::PkgIterator &pkg) APT_OVERRIDE { return pkg.en d() == false && ((*Kernels)(pkg) || DefaultRootSetFunc::InRootSet(pkg)); }; bool InRootSet(const pkgCache::PkgIterator &pkg) APT_OVERRIDE { return pkg.en d() == false && ((*Kernels)(pkg) || DefaultRootSetFunc::InRootSet(pkg)); };
}; };
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)