Documented struct package_conflict and added a note about the
inefficiency when reading all the +REQUIRED_BY files.
This commit is contained in:
parent
1d0b8f6360
commit
5a54dec7a9
1 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
/*
|
||||||
|
* XXX: Reading the +REQUIRED_BY files of all installed packages is
|
||||||
|
* rather slow. Since this check is necessary to avoid conflicting
|
||||||
|
* packages, it should not be removed.
|
||||||
|
*
|
||||||
|
* TODO: Put all the information that is currently in the +REQUIRED_BY
|
||||||
|
* files into one large file or another database.
|
||||||
|
*/
|
||||||
|
|
||||||
#if HAVE_CONFIG_H
|
#if HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -11,6 +20,14 @@
|
||||||
#include "dewey.h"
|
#include "dewey.h"
|
||||||
#include "lib.h"
|
#include "lib.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data structure to keep the intermediate result of the conflict
|
||||||
|
* search. ''pkgname'' is the package in question. The first
|
||||||
|
* installed package that conflicts is filled into
|
||||||
|
* ''conflicting_pkgname''. The pattern that leads to the conflict is
|
||||||
|
* also filled in to help the user in deciding what to do with the
|
||||||
|
* conflict.
|
||||||
|
*/
|
||||||
struct package_conflict {
|
struct package_conflict {
|
||||||
const char *pkgname;
|
const char *pkgname;
|
||||||
char **conflicting_pkgname;
|
char **conflicting_pkgname;
|
||||||
|
|
Loading…
Reference in a new issue