[Lunar-commits] <lunar> Use xz for snapshot and module_history

Peter de Ridder peter at lunar-linux.org
Sun Jan 6 02:04:22 CET 2013


commit 559780d1dd162cbc6a864ef838cb610773168d13
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Sat, 05 Jan 2013 17:04:22 -0800
URL: https://github.com/lunar-linux/lunar/commit/559780d1dd162cbc6a864ef838cb610773168d13

Use xz for snapshot and module_history
---
  plugins/postbuild-generic.plugin | +1/-1     
  prog/lvu                         | +2/-2     
  2 files changed, 3 insertions(+), 3 deletions(-)

--- a/plugins/postbuild-generic.plugin
+++ b/plugins/postbuild-generic.plugin
@@ -104,7 +104,7 @@ plugin_archive_module()
   if [ ! -e /var/state/lunar/module_history ]; then
     mkdir -p /var/state/lunar/module_history
   fi
-  tar -cj --exclude=.svn -C $MOONBASE/$SECTION -f /var/state/lunar/module_history/$MODULE-$VERSION-$(date -u +%Y%m%d).tar.bz2 $MODULE
+  tar -cJ --exclude=.svn -C $MOONBASE/$SECTION -f /var/state/lunar/module_history/$MODULE-$VERSION-$(date -u +%Y%m%d).tar.xz $MODULE
   return 2
 }
 
--- a/prog/lvu
+++ b/prog/lvu
@@ -123,7 +123,7 @@ EOF
 
 export_snapshot()  {
   SNAPSHOT=snapshot-$HOSTNAME-$(date -u +%Y%m%d)
-  tar cjfP "/root/$SNAPSHOT.tar.bz2" $CONFIG_CACHE $MODULE_STATUS
+  tar cJfP "/root/$SNAPSHOT.tar.xz" $CONFIG_CACHE $MODULE_STATUS
   message "${MESSAGE_COLOR}Snapshot ${DEFAULT_COLOR}${FILE_COLOR}$SNAPSHOT${DEFAULT_COLOR}${MESSAGE_COLOR} created.${DEFAULT_COLOR}"
 }
 
@@ -134,7 +134,7 @@ import_snapshot()  {
 
   if [ -f "$1" ] ; then
     ( mk_source_dir $SOURCE_DIRECTORY )
-    tar xj -C $SOURCE_DIRECTORY -f $SNAPSHOT 2> /dev/null
+    tar x -C $SOURCE_DIRECTORY -f $SNAPSHOT 2> /dev/null
     cd $SOURCE_DIRECTORY
 
 	message "${MESSAGE_COLOR}Restoring lunar configuration${DEFAULT_COLOR}"




More information about the Lunar-commits mailing list