[Lunar-commits] CVS: moonbase/devel/cvs/plugin.d download-cvs.plugin, 1.1, 1.2

Auke Kok sofar at lunar-linux.org
Thu Apr 7 09:28:01 UTC 2005


Update of /var/cvs/lunar/moonbase/devel/cvs/plugin.d
In directory espresso.foo-projects.org:/home/sofar/active/moonbase/devel/cvs/plugin.d

Modified Files:
	download-cvs.plugin 
Log Message:
Adjusting plugins to accomodate for the change


Index: download-cvs.plugin
===================================================================
RCS file: /var/cvs/lunar/moonbase/devel/cvs/plugin.d/download-cvs.plugin,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- download-cvs.plugin	30 Mar 2005 10:49:25 -0000	1.1
+++ download-cvs.plugin	7 Apr 2005 09:27:28 -0000	1.2
@@ -19,7 +19,6 @@
 
   if ! module_installed cvs ; then
     # full stop: we need to make sure the user sees this error:
-		
     message "${PROBLEM_COLOR}! Cannot fetch CVS sources without \"cvs\" installed!${DEFAULT_COLOR}"
     exit 1
   fi
@@ -46,7 +45,7 @@
   mk_source_dir $TMPDIR/$MODULE-$VERSION
   cd $TMPDIR/$MODULE-$VERSION
   
-  if [ -f "$2" ] ; then
+  if [ -f "$3/$2" ] ; then
     verbose_msg "Extracting local CVS copy"
     # unpacking in last component dir of $CVSMODULE
     CD=$(pwd -P)
@@ -54,7 +53,7 @@
     mkdir -p $(dirname $CVSMODULE)
     cd $(dirname $CVSMODULE)
     debug_msg "get_cvs: PWD=$PWD tar xjf $2"
-    if ! tar xjf $2 ; then
+    if ! tar xjf $3/$2 ; then
       message "${PROBLEM_COLOR}Warning: bad local CVS copy, checking out fresh CVS copy${DEFAULT_COLOR}"
       
       rm_source_dir $TMPDIR/$MODULE-$VERSION
@@ -89,10 +88,10 @@
   done
   
   if [ "$GOT_CVS" == "yes" ] ; then
-    message "${MESSAGE_COLOR}Creating ${FILE_COLOR}${2}${DEFAULT_COLOR}"
+    message "${MESSAGE_COLOR}Creating ${FILE_COLOR}$2${DEFAULT_COLOR}"
     # pack in last component dir of $CVSMODULE
     cd $TMPDIR/$MODULE-$VERSION/$(dirname $CVSMODULE)
-    tar cjf $2 $(basename $CVSMODULE)
+    tar cjf $3/$2 $(basename $CVSMODULE)
     cd $CD
   else
     activity_log "lget"  "$MODULE"  "$VERSION"  "failed" "Could not get $CVSMODULE"



More information about the Lunar-commits mailing list