[patch] fixed lvu diff output

Auke Kok sofar at foo-projects.org
Mon Dec 12 14:11:57 UTC 2005


Zbigniew Luszpinski wrote:

>Hi!
>
>I noticed that lvu diff command looks broken. I made a patch which fixes this.
>See attached lvu.patch.
>
>lvu diff <module name>
>should display module changes between zlocal module and official one.
>Without this patch lvu diiff's output is wrong.
>  
>

The problem was actually in the way ZSECTION was determined - by using 
your patch, you remove ZSECTION completely and break lvu diff for 
modules which are not immediately below zlocal but in a nested (deeper) 
directory.

I've committed a different fix to theedge, please test that one and let 
me know if you still have problems with it.

Auke

>greetings,
>Zbigniew 'zbiggy' Luszpinski
>  
>
>------------------------------------------------------------------------
>
>--- /bin/lvu	2005-10-13 23:05:03.000000000 +0200
>+++ /bin/lvu	2005-12-09 03:44:04.000000000 +0100
>@@ -753,7 +753,7 @@
> 	  exit 1
>     fi
> 	ZSECTION=$(echo $SECTION | sed 's/zlocal\///g')
>-    diff -Nurb $MOONBASE/$NZSECTION/$MODULE $MOONBASE/zlocal/$ZSECTION/$MODULE --exclude ".svn" --exclude "CVS" | sed "s|^\([+-][+-][+-] \)$MOONBASE/[^/]*/|\1|g" | grep -v "^diff " | sed "s|$ZSECTION\/||g"
>+    diff -Nurb $MOONBASE/$NZSECTION/$MODULE $MOONBASE/zlocal/$MODULE --exclude ".svn" --exclude "CVS" | sed "s|^\([+-][+-][+-] \)$MOONBASE/[^/]*/|\1|g" | grep -v "^diff " | sed "s|$ZSECTION\/||g"
>   fi
> }
> 
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Lunar mailing list
>Lunar at lunar-linux.org
>http://foo-projects.org/mailman/listinfo/lunar
>  
>



More information about the Lunar mailing list