[Lunar-commits] CVS: theedge/var/lib/lunar/functions depends.lunar,
1.41, 1.42
Jerry Lundström
prox at lunar-linux.org
Wed May 26 09:33:54 GMT 2004
Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv24498
Modified Files:
depends.lunar
Log Message:
added is_depended <module> <depend>, will return 1 if the depend for the module given is on
Index: depends.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/depends.lunar,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- depends.lunar 21 May 2004 19:51:27 -0000 1.41
+++ depends.lunar 26 May 2004 09:33:52 -0000 1.42
@@ -89,6 +89,12 @@
# Is $1 a previously selected dependency of any module.
return $(grep -q ":$1:on:" $DEPENDS_STATUS)
}
+
+is_depended() {
+ debug_msg "is_depended ($@)"
+ # Is $1 a previously selected dependency of any module.
+ return $(grep -q "^$1:$2:on:" $DEPENDS_STATUS)
+}
in_depends() {
More information about the Lunar-commits
mailing list