[Lunar-commits] CVS: theedge/var/lib/lunar/functions depends.lunar, 1.40, 1.41

Auke Kok sofar at lunar-linux.org
Fri May 21 19:51:29 GMT 2004


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv11881/var/lib/lunar/functions

Modified Files:
	depends.lunar 
Log Message:
Feature: lrm --purge $MODULES / lrm -p $MODULES. for instance: lrm -p qt3 removes qt3 and all apps that require (*REQUIRE*) qt3


Index: depends.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/depends.lunar,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- depends.lunar	21 May 2004 10:27:13 -0000	1.40
+++ depends.lunar	21 May 2004 19:51:27 -0000	1.41
@@ -388,3 +388,15 @@
     verbose_msg "Skipping depends cache regeneration"
   fi
 }
+
+
+# list all installed modules depending on $1
+list_installed_depending() {
+  debug_msg "list_installed_depending($2)"
+  for SUBDEP in $(grep ":$1:on:required" $DEPENDS_STATUS | cut -d: -f1 | sort | uniq) ; do
+    if $(module_installed $SUBDEP ) ; then
+      list_installed_depending $SUBDEP | sort | uniq
+      echo $SUBDEP
+    fi
+  done
+}



More information about the Lunar-commits mailing list