Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/rcorder Don't warn when two nodes provide the same thin...
details: https://anonhg.NetBSD.org/src/rev/ee4817b1cebd
branches: trunk
changeset: 485360:ee4817b1cebd
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Apr 26 05:12:06 2000 +0000
description:
Don't warn when two nodes provide the same thing; this can be quite
useful (read the big comment I added).
diffstat:
sbin/rcorder/rcorder.c | 42 +++++++++++++++++++++++++++++++++++++++---
1 files changed, 39 insertions(+), 3 deletions(-)
diffs (58 lines):
diff -r ab893d30aa6e -r ee4817b1cebd sbin/rcorder/rcorder.c
--- a/sbin/rcorder/rcorder.c Wed Apr 26 04:16:17 2000 +0000
+++ b/sbin/rcorder/rcorder.c Wed Apr 26 05:12:06 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rcorder.c,v 1.1 1999/11/23 05:28:22 mrg Exp $ */
+/* $NetBSD: rcorder.c,v 1.2 2000/04/26 05:12:06 thorpej Exp $ */
/*
* Copyright (c) 1998, 1999 Matthew R. Green
@@ -264,10 +264,46 @@
head->fnode = NULL;
head->last = head->next = NULL;
Hash_SetValue(entry, head);
- } else if (new == 0) {
+ }
+#if 0
+ /*
+ * Don't warn about this. We want to be able to support
+ * scripts that do two complex things:
+ *
+ * - Two independent scripts which both provide the
+ * same thing. Both scripts must be executed in
+ * any order to meet the barrier. An example:
+ *
+ * Script 1:
+ *
+ * PROVIDE: mail
+ * REQUIRE: LOGIN
+ *
+ * Script 2:
+ *
+ * PROVIDE: mail
+ * REQUIRE: LOGIN
+ *
+ * - Two interdependent scripts which both provide the
+ * same thing. Both scripts must be executed in
+ * graph order to meet the barrier. An example:
+ *
+ * Script 1:
+ *
+ * PROVIDE: nameservice dnscache
+ * REQUIRE: SERVERS
+ *
+ * Script 2:
+ *
+ * PROVIDE: nameservice nscd
+ * REQUIRE: dnscache
+ */
+ else if (new == 0) {
warnx("file `%s' provides `%s'.", fnode->filename, s);
- warnx("\tpreviously seen in `%s'.", head->next->fnode->filename);
+ warnx("\tpreviously seen in `%s'.",
+ head->next->fnode->filename);
}
+#endif
pnode = emalloc(sizeof(*pnode));
pnode->head = RESET;
Home |
Main Index |
Thread Index |
Old Index