summaryrefslogtreecommitdiff
path: root/src/generic/apt/aptitudepolicy.h
blob: 80c8cdc8a23417cc4db26df5eb9ef2cc818e9db6 (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
// aptitudepolicy.h                  -*-c++-*-
//
//  Copyright 2001 Daniel Burrows
//

#ifndef APTITUDEPOLICY_H
#define APTITUDEPOLICY_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <apt-pkg/policy.h>

/** \brief A policy class that allows Recommends and Suggests to be treated as
 *  "always important", "important for new installs", or "never important".
 * 
 *  \file aptitudepolicy.h
 */

class aptitudePolicy:public pkgPolicy
{
public:
  aptitudePolicy(pkgCache *Owner)
    :pkgPolicy(Owner) {}

  bool IsImportantDep(pkgCache::DepIterator dep);
};

#endif