[Lunar-commits] CVS: theedge/bin lvu,1.69,1.70

Auke Kok sofar at lunar-linux.org
Thu Apr 21 10:32:55 UTC 2005


Update of /var/cvs/lunar/theedge/bin
In directory espresso.foo-projects.org:/home/sofar/active/theedge/bin

Modified Files:
	lvu 
Log Message:
Alias fixes: add a 'NEVER_ASK' flag for the two occurences where this is absolutely required: lvu (s)tree and sort_by_dependency. For safety I removed the STDIN pipe to unalias in that function as well. Since sort_by_dependency removes aliases automatically the sort order isn't disturbed, and lvu will show the aliases if they're not installed just the way it should.


Index: lvu
===================================================================
RCS file: /var/cvs/lunar/theedge/bin/lvu,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- lvu	20 Apr 2005 08:38:16 -0000	1.69
+++ lvu	21 Apr 2005 10:32:22 -0000	1.70
@@ -473,13 +473,13 @@
     # local definitions
     function depends() {
       debug_msg "depends ($@)"
-      DEP=$(unalias $1)
+      DEP=$(NEVER_ASK=1 unalias $1)
       echo "+$DEP"
     }
 
     optional_depends() {
       debug_msg "optional_depends ($@)"
-      DEP=$(unalias $1)
+      DEP=$(NEVER_ASK=1 unalias $1)
       echo "-$DEP"
     }
     
@@ -568,7 +568,7 @@
       echo "$DEP" >> $TMP_SEEN
       CUR=${DEP:0:1}
       # note the FLAG= thingy here
-      FLAG= show_tree ${DEP:1}
+      FLAG= show_tree ${DEP:1} 2> /dev/null
     fi
   done
   # don't try this at home:



More information about the Lunar-commits mailing list