siggoberto / salchicha1

Automatically exported from code.google.com/p/tokland
0 stars 0 forks source link

archbootstrap can't handle .xz packages #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There new packages, which are packed with xz-utils.

gzip: zlib-1.2.3.9-1-x86_64.pkg.tar.xz: not in gzip format
--- download:
ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/core/os/x86_64/zlib-1.2.3.9-1-x86_6
4.pkg.tar.xz
--- uncompress package: zlib-1.2.3.9-1-x86_64.pkg.tar.xz

Original issue reported on code.google.com by andrej.g...@googlemail.com on 24 Feb 2010 at 11:36

GoogleCodeExporter commented 9 years ago
patch:

--- arch-bootstrap.sh   2010-02-17 20:54:42.000000000 +0100
+++ /arch-bootstrap.sh  2010-02-24 13:47:03.929634165 +0100
@@ -95,7 +95,18 @@
     fetch "$REPO/$FILE"
   }
   debug "uncompress package: $FILE"
-  tar xzf "$FILE" -C "$DEST"
+  case $FILE in
+   *.gz)
+    tar xzf "$FILE" -C "$DEST" ;
+    ;;
+  *.xz)
+   tar xf "$FILE" --xz  -C "$DEST" ;
+   ;;
+  *)
+   debug "unknown package format" ;
+   exit 1 ;
+  ;;
+ esac
 done

 debug "configure DNS and pacman"

Original comment by andrej.g...@googlemail.com on 24 Feb 2010 at 11:48

GoogleCodeExporter commented 9 years ago
pacman depend now on expat, pleas add to BASIC_PACKAGES

Original comment by andrej.g...@googlemail.com on 24 Feb 2010 at 11:58

GoogleCodeExporter commented 9 years ago
r227 r228 r229

Thanks for your report. I've included your fixes and refactored the code a 
little bit, 
please check it.

Original comment by tokland on 25 Feb 2010 at 3:09

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/tokland/source/browse/trunk/archlinux/arch-bootstrap.sh
?
spec=svn229&r=229#112

test -f "$FILE" && gunzip -q -t "$FILE" || {

this check work not correct for .xz packages.

Original comment by andrej.g...@googlemail.com on 26 Feb 2010 at 12:56

GoogleCodeExporter commented 9 years ago
Indeed, it was download .xz files all over again. Check r231

Original comment by tokland on 26 Feb 2010 at 1:21