summaryrefslogtreecommitdiff
path: root/src/cmdline/cmdline_show_broken.h
blob: 3bbd2c96b83c1296acc88b981761788c5666258f (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
// cmdline_show_broken.h                  -*-c++-*-
//
//   Copyright 2004 Daniel Burrows
//   Copyright 2015 Manuel A. Fernandez Montecelo

#ifndef CMDLINE_SHOW_BROKEN_H
#define CMDLINE_SHOW_BROKEN_H

#include <apt-pkg/pkgcache.h>


/** \file cmdline_show_broken.h
 */

/** Shows a list of all broken packages together with their dependencies.
 *  Similar to and based on the equivalent routine in apt-get.
 *
 *  @return \b false if some packages are broken.
 */
bool show_broken();


/** Shows broken dependencies for a single package
 *
 * @pkg The package
 */
void show_broken_deps(const pkgCache::PkgIterator& pkg);


#endif // CMDLINE_SHOW_BROKEN