[Lunar-commits] <lunar> If you feed patch_it with xz or lzma compressed patch file it will say that patch is broken or ends in the middle of line.

Auke Kok auke at foo-projects.org
Sun Jan 22 22:59:52 CET 2012


commit 21f4e914688846559ec73c850862760ec716d87e
Author: Zbigniew Luszpinski <zbiggy at o2.pl>
Date:   Sun Jan 22 22:59:52 2012 +0100

    If you feed patch_it with xz or lzma compressed patch file it will say
    that patch is broken or ends in the middle of line.
---
 var/lib/lunar/functions/edit.lunar |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/var/lib/lunar/functions/edit.lunar b/var/lib/lunar/functions/edit.lunar
index e3d6483..00c212a 100644
--- a/var/lib/lunar/functions/edit.lunar
+++ b/var/lib/lunar/functions/edit.lunar
@@ -36,6 +36,8 @@ patch_it () {
     GZCMD="bzcat"
   elif [[ -n `echo $PATCH | grep '\.gz$'` ]] ; then
     GZCMD="zcat"
+  elif [[ -n `echo $PATCH | grep -e '\.xz$' -e '\.lzma$'` ]] ; then
+    GZCMD="xzcat"
   else
     GZCMD="cat"
   fi


More information about the Lunar-commits mailing list