[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 sofar at foo-projects.org
Mon Jul 2 04:43:17 CEST 2012


commit 0a6201dd5c1465c3b004ef9cd5f2d668e3fb918f
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 file changed, 2 insertions(+)

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