[Lunar-commits] CVS: theedge/var/lib/lunar/functions plugins.lunar, 1.2, 1.3 sources.lunar, 1.29, 1.30

Auke Kok sofar at lunar-linux.org
Fri Mar 25 10:47:09 UTC 2005


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory espresso.foo-projects.org:/tmp/cvs-serv4953/var/lib/lunar/functions

Modified Files:
	plugins.lunar sources.lunar 
Log Message:
Fix lvu urls: now lists ALL urls!!!
Migrate unpack() to use plugins for all types (allows zip and rpm code to be migrated out of core later)


Index: plugins.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/plugins.lunar,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- plugins.lunar	24 Mar 2005 16:38:59 -0000	1.2
+++ plugins.lunar	25 Mar 2005 10:47:06 -0000	1.3
@@ -26,6 +26,7 @@
 	# 1 - SOURCE_DOWNLOAD - download some source code
 	# 2 - SOURCE_NEEDREFRESH - source exists but needs refresh
     # 3 - SOURCE_VERIFY - perform intergity verification on a file
+	# 4 - SOURCE_UNPACK - unpack a certain file to $(PWD)
 	LUNAR_PLUGINS=(${LUNAR_PLUGINS[@]} "$1:$2")
 	((LUNAR_PLUGIN_COUNT++))
 }

Index: sources.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/sources.lunar,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- sources.lunar	24 Mar 2005 16:38:59 -0000	1.29
+++ sources.lunar	25 Mar 2005 10:47:06 -0000	1.30
@@ -80,17 +80,7 @@
 
   FILENAME=$SOURCE_CACHE/$1
   verbose_msg "Unpacking \"$FILENAME\" in \"$(pwd)\""
-
-  case $(file -b $FILENAME | cut -d' ' -f1) in
-        bzip2)  tar jxf $FILENAME --no-same-owner --no-same-permissions ;;
-         gzip)  tar zxf $FILENAME --no-same-owner --no-same-permissions ;;
-    compress*)  tar zxf $FILENAME --no-same-owner --no-same-permissions ;;
-	  tar)  tar xf $FILENAME --no-same-owner --no-same-permissions ;;
-          Zip)  unzip -q $FILENAME ;;
-          RPM)  rpmunpack  < $FILENAME  |  gzip  -d     \
-                                        |  cpio  -idm   ;;
-            *)  false                                   ;;
-  esac
+  plugin_call SOURCE_UNPACK $SOURCE_CACHE/$1
 
   if [ "$?" != 0 ] ; then
     message "${PROBLEM_COLOR}! Error while unpacking ${FILE_COLOR}$SOURCE_CACHE/$1${DEFAULT_COLOR}${PROBLEM_COLOR}${DEFAULT_COLOR}"



More information about the Lunar-commits mailing list