blob: 40ef6fd4fc48e5d1a8c8006eb2150671075bdc86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// aptitudepolicy.cc
//
// Copyright 2001 Daniel Burrows
//
// A policy class that allows Recommends to be treated as "always
// important", "important for new installs", or "never important".
#include "aptitudepolicy.h"
#include <aptitude.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "apt.h"
#include "config_signal.h"
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/error.h>
bool aptitudePolicy::IsImportantDep(pkgCache::DepIterator dep)
{
if(pkgPolicy::IsImportantDep(dep))
return true;
if(dep->Type==pkgCache::Dep::Recommends)
return aptcfg->FindB(PACKAGE "::Recommends-Important", true);
else
return false;
}
|