pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/lib Documented struct packa...
details: https://anonhg.NetBSD.org/pkgsrc/rev/00d17e3b2311
branches: trunk
changeset: 536558:00d17e3b2311
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon Dec 17 09:42:03 2007 +0000
description:
Documented struct package_conflict and added a note about the
inefficiency when reading all the +REQUIRED_BY files.
diffstat:
pkgtools/pkg_install/files/lib/conflicts.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diffs (31 lines):
diff -r 182158de58b8 -r 00d17e3b2311 pkgtools/pkg_install/files/lib/conflicts.c
--- a/pkgtools/pkg_install/files/lib/conflicts.c Mon Dec 17 03:00:29 2007 +0000
+++ b/pkgtools/pkg_install/files/lib/conflicts.c Mon Dec 17 09:42:03 2007 +0000
@@ -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
#include "config.h"
#endif
@@ -11,6 +20,14 @@
#include "dewey.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 {
const char *pkgname;
char **conflicting_pkgname;
Home |
Main Index |
Thread Index |
Old Index