[Lunar-commits] CVS: theedge/bin lvu,1.49,1.50

Auke Kok sofar at lunar-linux.org
Mon May 24 13:20:59 GMT 2004


Update of /var/cvs/lunar/theedge/bin
In directory dbguin.lunar-linux.org:/tmp/cvs-serv24938

Modified Files:
	lvu 
Log Message:
Proper directory handling that allows both passing absolute and relative filenames of the snapshot.


Index: lvu
===================================================================
RCS file: /var/cvs/lunar/theedge/bin/lvu,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- lvu	24 May 2004 13:12:52 -0000	1.49
+++ lvu	24 May 2004 13:20:57 -0000	1.50
@@ -131,11 +131,8 @@
   SOURCE_DIRECTORY=$BUILD_DIRECTORY/snapshot
 
   if [ -f "$1" ] ; then
-    THERE=$(pwd -P)
-    cd $BUILD_DIRECTORY
-    mk_source_dir $SOURCE_DIRECTORY
-
-    bzcat $THERE/$SNAPSHOT | tar -x
+    ( mk_source_dir $SOURCE_DIRECTORY )
+    bzcat $SNAPSHOT | tar -x -C $BUILD_DIRECTORY
     cd $SOURCE_DIRECTORY
 
     for LINE in $(cat packages) ; do



More information about the Lunar-commits mailing list